/* SOA Member Portal Styles */

.smp-portal {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

.smp-header {
    border-bottom: 3px solid #1a3a6b;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.smp-header h2 {
    margin: 0 0 4px;
    font-size: 28px;
    color: #1a3a6b;
}

.smp-welcome {
    margin: 0;
    color: #555;
    font-size: 15px;
}

/* Sections */
.smp-section {
    margin-bottom: 36px;
}

.smp-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a6b;
    border-left: 4px solid #1a3a6b;
    padding-left: 12px;
    margin-bottom: 16px;
}

/* Cards grid */
.smp-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.smp-card {
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.smp-card-wide {
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
    padding: 28px 24px;
}

.smp-card-wide .smp-card-icon {
    font-size: 36px;
}

.smp-card-wide h4 {
    margin: 0 0 4px;
}

.smp-card-wide p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #666;
}

.smp-card-icon {
    font-size: 32px;
    line-height: 1;
}

.smp-card h4 {
    margin: 0;
    font-size: 14px;
    color: #222;
}

.smp-empty {
    color: #888;
    font-style: italic;
}

/* Buttons */
.smp-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.smp-btn-primary {
    background: #1a3a6b;
    color: #fff;
}

.smp-btn-primary:hover {
    background: #142d55;
    color: #fff;
}

.smp-btn-vote {
    background: #2e7d32;
    color: #fff;
}

.smp-btn-vote:hover {
    background: #1b5e20;
    color: #fff;
}

.smp-btn-full {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
}

.smp-voted-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
}

/* Overlay */
.smp-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1000000;
}

/* Slide-in Panel */
.smp-panel {
    position: fixed;
    top: 0;
    right: -34vw;
    width: 33vw;
    min-width: 380px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    z-index: 1000001;
    box-shadow: -6px 0 28px rgba(0,0,0,0.18);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.smp-panel.smp-panel-open {
    right: 0;
}


.smp-panel-header {
    background: #1a3a6b;
    color: #fff;
    padding: 32px 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 0;
}

.smp-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.smp-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.smp-panel-body {
    padding: 32px 24px 40px;
    overflow-y: scroll;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

/* Forms inside panels */
.smp-form-row {
    margin-bottom: 16px;
}

.smp-form-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.smp-form-third {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.smp-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.smp-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.smp-form-group input,
.smp-form-group select,
.smp-form-group textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.smp-form-group input:focus,
.smp-form-group select:focus,
.smp-form-group textarea:focus {
    outline: none;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 2px rgba(26,58,107,0.15);
}

.req {
    color: #c00;
}

.smp-vote-note {
    background: #f0f4ff;
    border-left: 3px solid #1a3a6b;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

/* Messages */
.smp-msg {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 14px;
}

.smp-msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.smp-msg-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

body.smp-no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    .smp-card {
        width: calc(50% - 8px);
    }

    .smp-card-wide {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .smp-form-half,
    .smp-form-third {
        grid-template-columns: 1fr;
    }
}
