@charset "utf-8";

/* ==========================================================================
   1. Global Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================================================
   2. UI Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */

#loadingSpinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    z-index: 1000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

/* --------------------------------------------------------------------------
   Scroll to Top Button
   -------------------------------------------------------------------------- */

.top_btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top_btn i {
    font-size: 20px;
}

.top_btn:hover {
    transform: scale(1.1);
}


/* ==========================================================================
   3. Forms
   ========================================================================== */

/* --------------------------------------------------------------------------
   Password Form
   -------------------------------------------------------------------------- */

#pass-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#pass-form .pass-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#pass-form h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

#pass-form .input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

#pass-form .password-input {
    width: 100%;
    margin-top: 7px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #1f2937;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

#pass-form .password-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

#pass-form .password-input::placeholder {
    color: #9ca3af;
}

#pass-form .button-group {
    display: flex;
    gap: 1rem;
}

#pass-form .button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
}

#pass-form .button-cancel {
    background-color: #e5e7eb;
    color: #4b5563;
}

#pass-form .button-cancel:hover {
    background-color: #d1d5db;
}

#pass-form .button-submit {
    background-color: #4F46E5;
    color: white;
}

#pass-form .button-submit:hover {
    background-color: #4338ca;
}

/* Error and info messages */
#pass-form #passwordError,
#pass-form #emailError,
#pass-form #forgotPasswordError {
    margin: 10px 0;
    color: #ff0000;
    font-size: 14px;
}

#pass-form #tempPasswordDisplay {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
}


/* ==========================================================================
   4. Pagination
   ========================================================================== */

.cm-pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cm-pagination {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cm-pagination-item {
    margin: 0 4px;
}

.cm-pagination-link {
    display: block;
    padding: 8px 12px;
    color: #555;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.cm-pagination-link:hover {
    color: #3498db;
    border-color: #3498db;
    background-color: #f8f9fa;
}

.cm-pagination-item.cm-pagination-active .cm-pagination-link {
    font-weight: bold;
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
    cursor: default;
}

.cm-pagination-item.cm-pagination-active .cm-pagination-link:hover {
    color: #fff;
}

/* ==========================================================================
   5. 문서
   ========================================================================== */
   .docs-container {
    display: flex;
    min-height: calc(100vh - 60px);
}
.docs-container .docs-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
}
.docs-container .docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}
.docs-container .menu-section {
    margin-bottom: 30px;
}
.docs-container .menu-section h3 {
    font-size: 1.1rem;
    color: #495057;
    padding: 10px 15px;
    margin: 0 -15px 10px;
    border-bottom: 1px solid #e9ecef;
}
.docs-container .menu-item {
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.docs-container .menu-item:hover {
    background-color: #e9ecef;
}
.docs-container .menu-item.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}
.docs-container .menu-item i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}
.docs-container .submenu {
    margin-left: 24px;
    margin-top: 5px;
    display: none;
}
.docs-container .submenu.show {
    display: block;
}
.docs-container .submenu a {
    display: block;
    padding: 6px 0 6px 15px;
    color: #495057;
    text-decoration: none;
    border-left: 2px solid #dee2e6;
    transition: all 0.2s;
}
.docs-container .submenu a:hover, .docs-container .submenu a.active {
    color: #0d6efd;
    border-left-color: #0d6efd;
    background-color: #f8f9fa;
}
.docs-container .content-area {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 30px;
    min-height: 80vh;
}
.docs-container .content-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
