/*
 * Client Portal Styles
 */

/* Layout */
.wadm-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
    padding: 20px;
}

.wadm-login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.wadm-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.wadm-login-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.wadm-login-form .wadm-form-group {
    margin-bottom: 20px;
}

.wadm-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.wadm-login-form .wadm-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.wadm-login-form .wadm-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.wadm-login-form .wadm-btn:hover {
    background: #2980b9;
}

.wadm-login-form .wadm-btn-block {
    display: block;
    width: 100%;
}

.wadm-form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.wadm-form-message.wadm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wadm-form-message.wadm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wadm-login-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.wadm-login-footer a {
    color: #3498db;
    text-decoration: none;
}

.wadm-login-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.wadm-dashboard {
    padding: 20px;
}

.wadm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.wadm-page-title {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.wadm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wadm-stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.wadm-stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.wadm-stat-label {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wadm-chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.wadm-chart-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #2c3e50;
}

.wadm-recent-activity {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wadm-section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wadm-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.wadm-activity-content {
    flex: 1;
}

.wadm-ad-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wadm-ad-status.active {
    background: #d4edda;
    color: #155724;
}

.wadm-ad-status.paused {
    background: #fff3cd;
    color: #856404;
}

.wadm-ad-status.draft {
    background: #e2e3e5;
    color: #383d41;
}

.wadm-ad-status.completed {
    background: #f8d7da;
    color: #721c24;
}

.wadm-activity-time {
    color: #95a5a6;
    font-size: 14px;
}

.wadm-no-activity,
.wadm-error {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

/* Ads Styles */
.wadm-ads-page {
    padding: 20px;
}

.wadm-ads-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.wadm-ads-filters,
.wadm-ads-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wadm-ads-filters select,
.wadm-ads-filters input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 180px;
}

.wadm-ads-actions .wadm-btn {
    padding: 10px 20px;
}

.wadm-ads-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.wadm-ads-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wadm-ads-table th,
.wadm-ads-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wadm-ads-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.wadm-ads-table tbody tr:hover {
    background: #f8f9fa;
}

.wadm-ads-table tbody tr:last-child td {
    border-bottom: none;
}

.wadm-table-loading,
.wadm-table-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.wadm-table-loading {
    font-style: italic;
}

/* Status badges */
.wadm-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wadm-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.wadm-status-badge.paused {
    background: #fff3cd;
    color: #856404;
}

.wadm-status-badge.draft {
    background: #e2e3e5;
    color: #383d41;
}

.wadm-status-badge.completed {
    background: #f8d7da;
    color: #721c24;
}

/* Modal Styles */
.wadm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 60px;
}

.wadm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.wadm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wadm-modal-title {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.wadm-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.wadm-modal-close:hover,
.wadm-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.wadm-form-group {
    margin-bottom: 20px;
}

.wadm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.wadm-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.wadm-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    box-sizing: border-box;
}

.wadm-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.wadm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wadm-checkbox-input {
    width: 16px;
    height: 16px;
}

.wadm-checkbox-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.wadm-btn-primary {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.wadm-btn-primary:hover {
    background: #2980b9;
}

.wadm-btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.wadm-btn-secondary:hover {
    background: #7f8c8d;
}

.wadm-btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.wadm-btn-danger:hover {
    background: #c0392b;
}

.wadm-btn-link {
    background: none;
    color: #3498db;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.wadm-btn-link:hover {
    color: #2980b9;
}

.wadm-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.wadm-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wadm-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wadm-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wadm-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wadm-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .wadm-ads-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wadm-ads-filters,
    .wadm-ads-actions {
        width: 100%;
    }
    
    .wadm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}