/*
 * Classic collector portal theme
 *
 * This stylesheet defines the dark sidebar and top bar layout used for
 * the collector dashboard and artwork portal.  White content panels
 * contrast against the dark navigation.  On narrow screens, the
 * sidebar collapses into a horizontal row to keep all buttons
 * accessible.  Buttons use an emerald accent colour without raised
 * neumorphic shadows.
 */

/* Top navigation bar */
.ev-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 1rem 1.5rem;
}

/* Top bar links */
.ev-topbar-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    transition: background-color 0.15s ease;
}
.ev-topbar-link:hover {
    background: #222;
}

/* Portal layout container */
.ev-container {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 70px);
    width: 100%;
}

/* Sidebar */
.ev-side-nav {
    width: 220px;
    background: #111;
    color: #fff;
    padding: 2rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.ev-side-nav .ev-nav-wrapper {
    margin-bottom: 0.5rem;
}
.ev-side-nav .ev-nav-item {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s ease;
}
.ev-side-nav .ev-nav-item:hover {
    background: #222;
}
.ev-side-nav .ev-nav-item.active {
    background: #333;
}

/* Main content */
.ev-main {
    flex: 1;
    padding: 2rem;
    background: #f5f5f5;
    box-sizing: border-box;
}

/* Overview card */
.ev-overview-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}
.ev-overview-image {
    flex: 0 0 40%;
    max-width: 40%;
}
.ev-overview-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}
.ev-overview-info {
    flex: 1;
}
.ev-overview-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #222;
}

/* Records page */
.ev-records-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.ev-record-nav {
    flex: 0 0 200px;
    max-width: 200px;
}
.ev-record-detail {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ev-record-date {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}
.ev-record-title {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
    color: #222;
    font-weight: 600;
}
.ev-record-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.4;
}
.ev-record-media {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.ev-record-media img {
    max-width: 100%;
    height: auto;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
}

/* Form card and fields */
.ev-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #222;
}
.ev-form-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}
.ev-form-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.ev-form-field {
    margin-bottom: 1rem;
}
.ev-form-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #333;
}
.ev-form-field input,
.ev-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 1rem;
    color: #333;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.ev-form-field textarea {
    resize: vertical;
}
.ev-file-fields {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.ev-file-input {
    flex: 1;
}
.button {
    display: inline-block;
    background: #229954;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
}
.button:hover {
    background: #1e7f48;
}
.button:active {
    background: #186638;
}

/* Transfer and certificate cards */
.ev-transfer-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Responsive rules */
@media (max-width: 768px) {
    .ev-container {
        flex-direction: column;
    }
    .ev-side-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem 0.5rem;
    }
    .ev-side-nav .ev-nav-wrapper {
        flex: 1 0 auto;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    .ev-side-nav .ev-nav-item {
        text-align: center;
        padding: 0.5rem 0.5rem;
    }
    .ev-records-container {
        flex-direction: column;
    }
    .ev-record-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .ev-record-nav .ev-nav-wrapper {
        flex: 1 0 auto;
        margin-right: 0.5rem;
    }
    .ev-record-detail {
        padding: 1.5rem;
    }
    .ev-overview-card {
        flex-direction: column;
    }
    .ev-overview-image,
    .ev-overview-info {
        max-width: 100%;
    }
}