* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "맑은 고딕", sans-serif;
    background: #f4f6f8;
}

.signup-wrap {
    width: 100%;
    max-width: 520px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.signup-wrap h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: #222;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.btn {
    width: 100%;
    background: #4a90e2;
    color: white;
    border: 0;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: #357abd;
}

p {
    text-align: center;
    color: #444;
}

a {
    color: #357abd;
    text-decoration: none;
}

.btn-link {
    display: block;
    width: 100%;
    text-align: center;
    background: #4a90e2;
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-link:hover {
    background: #357abd;
}

.logout-link {
    background: #666;
}

.logout-link:hover {
    background: #444;
}

.profile-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px;
    line-height: 1.8;
}

.admin-wrap {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.admin-wrap h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: #222;
}

.table-wrap {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.user-table th,
.user-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    vertical-align: top;
}

.user-table th {
    background: #f1f5f9;
}

.admin-top-links {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    font-size: 15px;
}

.search-btn {
    background: #4a90e2;
    color: #fff;
    border: 0;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
}

.search-btn:hover {
    background: #357abd;
}

.admin-summary {
    margin-bottom: 18px;
    color: #333;
    line-height: 1.7;
}

.action-cell {
    white-space: nowrap;
}

.view-btn,
.edit-btn,
.delete-btn {
    display: inline-block;
    padding: 8px 10px;
    margin: 2px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    line-height: 1.2;
}

.view-btn {
    background: #5bc0de;
}

.view-btn:hover {
    background: #31b0d5;
}

.edit-btn {
    background: #5cb85c;
}

.edit-btn:hover {
    background: #449d44;
}

.delete-btn {
    background: #d9534f;
    cursor: pointer;
}

.delete-btn:hover {
    background: #b52b27;
}

.self-label {
    display: inline-block;
    padding: 8px 12px;
    background: #999;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
}

.pagination {
    margin-top: 24px;
    text-align: center;
}

.page-link {
    display: inline-block;
    margin: 0 4px 6px;
    padding: 8px 12px;
    border: 1px solid #dcdfe3;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.page-link:hover {
    background: #f1f5f9;
}

.page-link.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.inline-delete-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.inline-delete-form button {
    border: 0;
    cursor: pointer;
}

.log-desc {
    text-align: left;
    min-width: 260px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.filter-tab:hover {
    background: #f1f5f9;
}

.filter-tab.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.restore-btn {
    display: inline-block;
    padding: 8px 10px;
    margin: 2px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    line-height: 1.2;
    background: #f0ad4e;
    cursor: pointer;
}

.restore-btn:hover {
    background: #ec971f;
}

.status-badge {
    display: inline-block;
    min-width: 70px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.status-active {
    background: #5cb85c;
}

.status-deleted {
    background: #d9534f;
}

.danger-btn {
    background: #d9534f;
}

.danger-btn:hover {
    background: #b52b27;
}

.reauth-ok-box {
    margin-bottom: 16px;
    padding: 14px;
    background: #eef7ff;
    border: 1px solid #b7d8ff;
    border-radius: 8px;
    color: #1f4f82;
    font-size: 14px;
    line-height: 1.6;
}

.danger-btn {
    background: #d9534f;
}

.danger-btn:hover {
    background: #b52b27;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.dash-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.dash-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #444;
}

.dash-card p {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: #222;
}

.dashboard-section {
    margin-top: 28px;
}

.dashboard-section h2 {
    margin-bottom: 14px;
    font-size: 22px;
    color: #222;
}

.reauth-ok-box {
    margin-bottom: 16px;
    padding: 14px;
    background: #eef7ff;
    border: 1px solid #b7d8ff;
    border-radius: 8px;
    color: #1f4f82;
    font-size: 14px;
    line-height: 1.6;
}

.status-locked {
    background: #f0ad4e;
}

.status-normal {
    background: #5cb85c;
}

.unlock-btn {
    display: inline-block;
    padding: 8px 10px;
    margin: 2px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    line-height: 1.2;
    background: #8a6d3b;
    cursor: pointer;
}

.unlock-btn:hover {
    background: #6f562d;
}

.unlock-big-btn {
    background: #8a6d3b;
    margin-bottom: 10px;
}

.unlock-big-btn:hover {
    background: #6f562d;
}

.detail-inline-form {
    margin: 0 0 10px 0;
}

.status-locked {
    background: #f0ad4e;
}

.status-normal {
    background: #5cb85c;
}

.reset-btn {
    display: inline-block;
    padding: 8px 10px;
    margin: 2px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    line-height: 1.2;
    background: #9370db;
    cursor: pointer;
}

.reset-btn:hover {
    background: #7a5cc6;
}

.reset-big-btn {
    background: #9370db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

.reset-big-btn:hover {
    background: #7a5cc6;
}

.warning-btn {
    background: #9370db;
}

.warning-btn:hover {
    background: #7a5cc6;
}

.warning-card {
    border-color: #f0ad4e;
}

.danger-card {
    border-color: #d9534f;
}

.mini-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.mini-link-btn:hover {
    background: #e2e8f0;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #4a90e2;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #357abd;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.section-sub-link {
    font-size: 13px;
    color: #666;
}

.section-more-link {
    font-size: 14px;
    font-weight: bold;
}

.status-warning {
    background: #f0ad4e;
}

.warning-card {
    border-color: #f0ad4e;
}

.danger-card {
    border-color: #d9534f;
}

.mini-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #333;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.mini-link-btn:hover {
    background: #e2e8f0;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #4a90e2;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #357abd;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.section-sub-link {
    font-size: 13px;
    color: #666;
}

.section-more-link {
    font-size: 14px;
    font-weight: bold;
}

.status-warning {
    background: #f0ad4e;
}

.flash-message {
    width: 100%;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    border: 1px solid transparent;
}

.flash-success {
    background: #edf9f0;
    color: #1f6b37;
    border-color: #b7e1c3;
}

.flash-error {
    background: #fff0f0;
    color: #a12622;
    border-color: #f0b7b7;
}

.flash-warning {
    background: #fff8e6;
    color: #8a5a00;
    border-color: #f1d28a;
}

.flash-info {
    background: #eef7ff;
    color: #1f4f82;
    border-color: #b7d8ff;
}