/* ================================================== */
/* == START: CSS for ShareDrop Admin UI           == */
/* ================================================== */

/* --- Container & General Layout --- */
#sharedrop-admin-view {
    /* display: none; /* Controlled by JS */
    /* Uses padding from parent .main-content or specific view padding */
}

.sd-admin-header {
    font-size: 1.6em; /* Slightly smaller than main h1 */
    margin-bottom: 25px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    font-weight: 500; /* Less bold than h1 */
}
.sd-admin-header i {
    color: #3498db; /* Match sidebar icon color */
    font-size: 1.1em; /* Slightly smaller */
    margin-right: 12px;
}

.sd-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); /* Main content takes more space */
    gap: 30px;
}

.sd-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between sections */
}

.sd-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between widgets */
}

/* --- Sections & Widgets --- */
.sd-section {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.sd-section h3,
.sd-widget h4 {
    font-size: 1.2em;
    margin-bottom: 18px;
    color: #34495e;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.sd-section h3 i,
.sd-widget h4 i {
    margin-right: 10px;
    color: #7f8c8d;
    font-size: 1em;
}
.sd-widget h5 {
    font-size: 0.9em;
    color: #34495e;
    margin-top: 15px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* --- Quick Launch Zone --- */
.sd-quick-launch-zone h3 { border-bottom: none; padding-bottom: 0; margin-bottom: 15px;}
.sd-quick-actions-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 25px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.sd-button { /* Base button style */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sd-button i { line-height: 1; font-size: 1.1em; }

.sd-button-primary {
    background-color: #3498db; /* Primary blue */
    color: white;
    border-color: #3498db;
}
.sd-button-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sd-button-large {
    padding: 12px 25px;
    font-size: 1.1em;
    min-width: 220px; /* Ensure it stands out */
}
.sd-button-large i { font-size: 1.2em; }

.sd-quick-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}
.sd-quick-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}
.sd-quick-link:hover { color: #2980b9; text-decoration: underline; }
.sd-quick-link i { font-size: 1.1em; }

.sd-quick-stat {
    background-color: #ecf0f1;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #dfe6e9;
}
.sd-quick-stat .label {
    display: block;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 5px;
}
.sd-quick-stat .value {
    display: block;
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
}
.sd-quick-stat .value small {
    font-size: 0.6em;
    font-weight: 500;
    color: #7f8c8d;
    margin-left: 2px;
}
.sd-view-details-link {
    display: block;
    font-size: 0.85em;
    color: #3498db;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s ease;
}
.sd-view-details-link:hover { color: #2980b9; text-decoration: underline;}

/* --- ShareDrop Summary Table --- */
.sd-summary-section h3 { /* Keep default style */ }
.sd-table-container {
     width: 100%;
     overflow-x: auto; /* Allow horizontal scroll */
     margin-bottom: 15px; /* Space before pagination */
}
/* Use existing .dashboard-table styles */
.sd-summary-table { width: 100%; } /* Ensure full width */
.sd-summary-table td { vertical-align: middle; }

/* Status & Access Badges */
.sd-status-badge, .sd-access-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.8em;
    font-weight: 500;
    border-radius: 12px; /* Pill shape */
    white-space: nowrap;
    line-height: 1.4;
}
.sd-status-live { background-color: #2ecc71; color: white; }
.sd-status-scheduled { background-color: #f39c12; color: white; }
.sd-status-ended { background-color: #bdc3c7; color: #34495e; }

.sd-access-paid { background-color: #9b59b6; color: white; }
.sd-access-free { background-color: #ecf0f1; color: #7f8c8d; border: 1px solid #dfe6e9;}

.sd-table-actions a, .sd-table-actions button {
    margin-right: 12px;
    font-size: 0.9em; /* Slightly smaller actions */
    display: inline-flex; align-items: center; gap: 4px;
}
.sd-table-actions a:last-child, .sd-table-actions button:last-child { margin-right: 0; }
.sd-table-actions i { font-size: 1.1em; }

.sd-pagination {
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
}
.sd-pagination a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    padding: 3px 5px;
}
.sd-pagination a:hover { text-decoration: underline; }

/* --- Sidebar Widgets --- */
.sd-widget {
    background-color: #ffffff;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e0e0e0;
}

/* Sales Insights Widget */
.sd-sales-widget .sd-sales-total {
    background-color: #f4f7f9;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sd-sales-widget .sd-sales-total span {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}
.sd-sales-widget .sd-sales-total strong {
    font-size: 1.5em;
    color: #27ae60; /* Green for money */
    font-weight: 600;
}
.sd-recent-payments {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 0.9em;
    max-height: 150px; /* Limit height */
    overflow-y: auto;
}
.sd-recent-payments li {
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
    color: #555;
    display: flex;
    justify-content: space-between;
}
.sd-recent-payments li:last-child { border-bottom: none; }
.sd-recent-payments li span { color: #27ae60; font-weight: 500; } /* Green for income */
.sd-no-sales-message {
    background-color: #e8f6f0;
    color: #1a7e44;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 15px;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #b8e0c9;
}

/* Studio Widget */
.sd-studio-widget .sd-studio-quick-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.sd-profile-pic-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ecf0f1;
    flex-shrink: 0;
}
.sd-studio-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sd-studio-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sd-studio-links a:hover { color: #2980b9; }
.sd-studio-links i { color: #7f8c8d; width: 16px; text-align: center;}
.sd-studio-tip {
    font-size: 0.85em;
    color: #7f8c8d;
    padding-top: 10px;
    border-top: 1px dotted #eee;
    margin-top: 15px;
    font-style: italic;
}

/* Account Widget */
.sd-account-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sd-account-links li { margin-bottom: 8px; }
.sd-account-links li:last-child { margin-bottom: 0; }
.sd-account-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sd-account-links a:hover { color: #2980b9; }
.sd-account-links i { color: #7f8c8d; width: 16px; text-align: center;}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Tablet */
    .sd-admin-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 25px;
    }
    .sd-sidebar-widgets {
        /* Optional: Arrange widgets horizontally if desired */
         /* display: grid;
         grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
         gap: 20px; */
    }
}

@media (max-width: 768px) { /* Mobile */
    .sd-admin-header { font-size: 1.4em; margin-bottom: 20px; }
    .sd-section, .sd-widget { padding: 15px 20px; }
    .sd-section h3, .sd-widget h4 { font-size: 1.1em; margin-bottom: 15px; }
    .sd-quick-actions-container { flex-direction: column; align-items: stretch; gap: 15px;}
    .sd-button-large { width: 100%; min-width: 0; }
    .sd-quick-links { gap: 12px; }
    .sd-quick-stat { padding: 10px 12px; }
    .sd-quick-stat .value { font-size: 1.3em; }
    .sd-summary-table { font-size: 13px; }
    .sd-summary-table th, .sd-summary-table td { padding: 10px 12px; }
    .sd-status-badge, .sd-access-badge { font-size: 0.75em; padding: 2px 8px;}
    .sd-table-actions a, .sd-table-actions button { margin-right: 8px; }
    .sd-table-actions i { font-size: 1.2em; } /* Make icons easier to tap */
}

@media (max-width: 576px) {
     #sharedrop-admin-view { /* Adjust padding if needed when inside main-content */ }
     .sd-admin-header { font-size: 1.3em; }
     .sd-button { font-size: 0.9em; padding: 9px 15px; }
     .sd-button-large { font-size: 1em; padding: 10px 20px; }
     .sd-summary-table th, .sd-summary-table td { white-space: normal; } /* Allow wrapping */
     .sd-summary-table td:nth-child(4) { text-align: center; } /* Center signups */
     .sd-sales-widget .sd-sales-total { flex-direction: column; align-items: flex-start; gap: 5px;}
     .sd-sales-widget .sd-sales-total strong { font-size: 1.4em; }
     .sd-recent-payments { font-size: 0.85em; }
     .sd-studio-widget .sd-studio-quick-status { flex-direction: column; align-items: flex-start; }
}

/* ================================================ */
/* == END: CSS for ShareDrop Admin UI             == */
/* ================================================ */