/* CHIBAOKTA Member System - Custom Styles */

:root {
    --okta-primary: #2c3e50;
    --okta-accent: #e74c3c;
    --okta-bg: #f8f9fa;
}

body {
    background-color: var(--okta-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Cards */
.member-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}
.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.member-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #dee2e6;
}
.member-card .card-body {
    padding: 1.25rem;
}
.member-card .member-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.member-card .member-position {
    color: #6c757d;
    font-size: 0.9rem;
}
.member-card .member-company {
    color: #495057;
    font-size: 0.85rem;
}

/* Photo placeholder */
.photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #dee2e6 0%, #adb5bd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

/* Photo upload area */
.photo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.photo-upload-area:hover {
    border-color: #0d6efd;
    background-color: #f0f6ff;
}
.photo-upload-area.dragging {
    border-color: #0d6efd;
    background-color: #e8f0fe;
}

.photo-upload-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 8px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    vertical-align: top;
}
.photo-upload-box:hover {
    border-color: #0d6efd;
    background-color: #f0f6ff;
}
.photo-upload-box.dragging {
    border-color: #0d6efd;
    background-color: #e8f0fe;
}
.photo-upload-box i {
    font-size: 2rem;
    color: #adb5bd;
}
.photo-upload-box small {
    font-size: 0.65rem;
    color: #adb5bd;
    margin-top: 4px;
}

.photo-preview {
    position: relative;
    display: inline-block;
    margin: 8px;
}
.photo-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}
.photo-preview .btn-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0;
    font-size: 12px;
    line-height: 24px;
}

/* Status badges */
.badge-published {
    background-color: #198754;
}
.badge-draft {
    background-color: #6c757d;
}

/* Admin sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
}
.admin-sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 4px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

/* Form sections */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.form-section h5 {
    color: var(--okta-primary);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
}

/* Responsive */
@media (max-width: 768px) {
    .member-card .card-img-top {
        height: 160px;
    }
    .photo-preview img {
        width: 100px;
        height: 100px;
    }
}
