/* Apple Style - Secret Office */

/* 로그인 화면 */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    max-width: 380px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-box h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.login-box p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.login-box input {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    transition: all 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.login-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.3);
}

.login-box button {
    width: 100%;
    padding: 1rem;
    background: #0a84ff;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-box button:hover {
    background: #409cff;
    transform: scale(1.02);
}

.login-box button:active {
    transform: scale(0.98);
}

.error {
    color: #ff453a;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 대시보드 */
.dashboard {
    min-height: 100vh;
    background: #000000;
}

.office-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.office-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
}

.status-dot.error {
    background: #ff453a;
    box-shadow: 0 0 8px rgba(255, 69, 58, 0.5);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    min-height: calc(100vh - 56px);
}

/* 폴더 패널 */
.folder-panel {
    background: rgba(28, 28, 30, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
}

.folder-panel h2 {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.folder-tree {
    list-style: none;
}

.folder-tree li {
    padding: 0.6rem 0.9rem;
    margin-bottom: 2px;
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.folder-tree li:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.folder-tree li.active {
    background: #0a84ff;
    color: #ffffff;
}

.folder-tree li .count {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.folder-tree li.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* 콘텐츠 패널 */
.content-panel {
    padding: 1.25rem;
    overflow-y: auto;
    background: #000000;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#current-path {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    font-size: 0.85rem;
}

.toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.toolbar-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-actions button:hover {
    background: rgba(10, 132, 255, 0.3);
    color: #0a84ff;
}

/* 이미지 목록 */
.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.image-item {
    background: rgba(28, 28, 30, 0.8);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.image-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.image-item .info {
    padding: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.image-item .info .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.image-item .info .meta {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(10, 132, 255, 0.4);
}

/* 상태 패널 */
.status-panel {
    background: rgba(28, 28, 30, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
}

.status-panel h2 {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.status-panel h2:first-child {
    margin-top: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-buttons button {
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-buttons button:hover {
    background: #0a84ff;
    color: #ffffff;
}

/* 최근 활동 */
.recent-list {
    font-size: 0.85rem;
}

.recent-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item .message {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.recent-item .meta {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* 저장소 상태 */
.repo-stats {
    font-size: 0.85rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
}

.stat-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Loading & Empty */
.loading, .empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 200px 1fr;
    }

    .status-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .folder-panel {
        display: none;
    }

    .login-box {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
}
