/**
 * Temporary Access Page Styles
 *
 * @package GuardDog
 * @since 1.8.0
 */

/* Card Components */
.guard-dog-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guard-dog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.guard-dog-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.guard-dog-card-body {
    padding: 20px;
}

.guard-dog-badge {
    background: #0073aa;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Toggle Switch */
.guard-dog-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.guard-dog-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.guard-dog-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.guard-dog-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.guard-dog-toggle input:checked + .guard-dog-toggle-slider {
    background-color: #0073aa;
}

.guard-dog-toggle input:checked + .guard-dog-toggle-slider:before {
    transform: translateX(26px);
}

/* Form Styling */
.guard-dog-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.guard-dog-form-group label {
    font-weight: 600;
    color: #23282d;
    font-size: 14px;
}

.guard-dog-form-group .required {
    color: #dc3545;
}

.guard-dog-input,
.guard-dog-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.guard-dog-input:focus,
.guard-dog-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.guard-dog-form-group .description {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* Table Styling */
.guard-dog-table-container {
    overflow-x: auto;
}

.guard-dog-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.guard-dog-table th,
.guard-dog-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.guard-dog-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #23282d;
    font-size: 13px;
}

.guard-dog-table td {
    font-size: 14px;
}

/* User Information */
.guard-dog-user-info strong {
    color: #23282d;
    font-weight: 600;
}

.guard-dog-user-info small {
    color: #666;
    font-size: 12px;
}

/* Role Badges */
.guard-dog-role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.guard-dog-role-subscriber {
    background: #e3f2fd;
    color: #1976d2;
}

.guard-dog-role-contributor {
    background: #f3e5f5;
    color: #7b1fa2;
}

.guard-dog-role-author {
    background: #e8f5e8;
    color: #388e3c;
}

.guard-dog-role-editor {
    background: #fff3e0;
    color: #f57c00;
}

.guard-dog-role-administrator {
    background: #ffebee;
    color: #d32f2f;
}

/* Access Link */
.guard-dog-access-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guard-dog-access-link-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.guard-dog-access-link {
    flex: 1;
    min-width: 200px;
    font-family: monospace;
    font-size: 11px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 4px 6px;
    cursor: text;
}

.guard-dog-copy-link,
.guard-dog-test-link {
    padding: 4px 6px !important;
    min-width: auto !important;
}

.guard-dog-copy-link.copied {
    background-color: #46b450 !important;
    border-color: #46b450 !important;
    color: white !important;
}

.guard-dog-copy-link.error {
    background-color: #dc3232 !important;
    border-color: #dc3232 !important;
    color: white !important;
}

.guard-dog-link-input {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 6px 8px;
    border-radius: 4px;
}

.guard-dog-copy-btn {
    padding: 6px 8px !important;
    min-width: auto !important;
}

.guard-dog-copy-btn .dashicons {
    font-size: 14px;
}

/* Expiry Information */
.guard-dog-expiry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guard-dog-expiry-date {
    font-weight: 600;
    color: #23282d;
    font-size: 13px;
}

.guard-dog-time-remaining {
    color: #666;
    font-size: 11px;
}

/* Uses Count */
.guard-dog-uses-count {
    font-weight: 600;
    color: #23282d;
    font-size: 13px;
}

/* Status Badges */
.guard-dog-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.guard-dog-status-active {
    background: #e8f5e8;
    color: #388e3c;
}

.guard-dog-status-expiring_soon {
    background: #fff3e0;
    color: #f57c00;
}

.guard-dog-status-expired {
    background: #ffebee;
    color: #d32f2f;
}

/* Actions */
.guard-dog-actions {
    display: flex;
    gap: 8px;
}

.guard-dog-actions .button {
    padding: 4px 8px !important;
    font-size: 12px !important;
    min-width: auto !important;
}

.guard-dog-actions .dashicons {
    font-size: 14px;
}

/* Empty State */
.guard-dog-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.guard-dog-empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.guard-dog-empty-state h3 {
    margin-bottom: 10px;
    color: #23282d;
    font-size: 18px;
}

.guard-dog-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Cleanup Section */
.guard-dog-cleanup-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guard-dog-cleanup-section .button {
    margin-bottom: 10px;
}

.guard-dog-cleanup-section .description {
    color: #666;
    font-size: 13px;
    margin: 0;
}

/* Statistics */
.guard-dog-stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.guard-dog-stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.guard-dog-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 5px;
}

.guard-dog-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.guard-dog-stats-breakdown {
    margin-bottom: 25px;
}

.guard-dog-stats-breakdown h4 {
    margin-bottom: 15px;
    color: #23282d;
    font-size: 14px;
}

.guard-dog-stats-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guard-dog-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
}

.guard-dog-stat-type {
    color: #23282d;
    font-weight: 500;
}

.guard-dog-stat-count {
    background: #0073aa;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.guard-dog-stats-summary h4 {
    margin-bottom: 15px;
    color: #23282d;
    font-size: 14px;
}

.guard-dog-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guard-dog-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.guard-dog-info-item:last-child {
    border-bottom: none;
}

.guard-dog-info-label {
    color: #666;
}

.guard-dog-info-value {
    font-weight: 600;
    color: #23282d;
}

.guard-dog-status-active {
    color: #388e3c !important;
}

/* Quick Actions */
.guard-dog-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.guard-dog-quick-actions .button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    justify-content: flex-start;
}

.guard-dog-quick-actions .dashicons {
    font-size: 16px;
}

/* Help Links */
.guard-dog-help-links h4 {
    margin-bottom: 10px;
    color: #23282d;
    font-size: 14px;
}

.guard-dog-help-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guard-dog-help-links li {
    margin-bottom: 8px;
}

.guard-dog-help-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.guard-dog-help-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Notices */
.guard-dog-notice {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.guard-dog-notice.notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guard-dog-admin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guard-dog-form-grid {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-stats-overview {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-table {
        font-size: 12px;
    }
    
    .guard-dog-table th,
    .guard-dog-table td {
        padding: 8px;
    }
    
    .guard-dog-access-link {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .guard-dog-link-input {
        font-size: 11px;
    }
} 
