/**
 * Guard Dog Admin Styles
 * 
 * Professional admin interface styles for the reorganized
 * multi-page admin interface.
 */

/* Status indicators */
.guard-dog-status-enabled {
    color: green;
}

.guard-dog-status-disabled {
    color: red;
}

/* WordPress Admin Color Scheme Integration */
.guard-dog-admin-page {
    background: #f1f1f1;
    min-height: 100vh;
}

/* Admin Navigation */
.guard-dog-admin-nav {
    background: white;
    border-bottom: 1px solid #c3c4c7;
    margin-bottom: 20px;
    padding: 0;
}

.guard-dog-admin-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.guard-dog-admin-nav li {
    margin: 0;
}

.guard-dog-admin-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #646970;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.guard-dog-admin-nav a:hover,
.guard-dog-admin-nav a.current {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Card Styles */
.guard-dog-card {
    background: white;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.guard-dog-card h2 {
    margin-top: 0;
    color: #1d2327;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Button Styles */
.guard-dog-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.guard-dog-button:hover {
    background: #135e96;
    color: white;
    text-decoration: none;
}

.guard-dog-button-secondary {
    background: #f6f7f7;
    color: #2271b1;
    border: 1px solid #dcdcde;
}

.guard-dog-button-secondary:hover {
    background: #f0f0f1;
    color: #2271b1;
}

/* Status Indicators */
.guard-dog-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.guard-dog-status.enabled {
    background: #d1e7dd;
    color: #0f5132;
}

.guard-dog-status.disabled {
    background: #fff3cd;
    color: #664d03;
}

.guard-dog-status.partial {
    background: #cff4fc;
    color: #055160;
}

/* Form Styles */
.guard-dog-form-table {
    width: 100%;
    border-collapse: collapse;
}

.guard-dog-form-table th {
    text-align: left;
    padding: 15px 0;
    width: 200px;
    vertical-align: top;
    font-weight: 600;
}

.guard-dog-form-table td {
    padding: 15px 0;
}

.guard-dog-form-table .description {
    color: #646970;
    font-size: 13px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guard-dog-admin-nav ul {
        flex-direction: column;
    }
    
    .guard-dog-admin-nav a {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .guard-dog-admin-nav a:hover,
    .guard-dog-admin-nav a.current {
        border-left-color: #2271b1;
        border-bottom-color: transparent;
    }

    .guard-dog-tab-nav {
        flex-direction: column;
    }

    .guard-dog-tab-link {
        border-right: none;
        border-bottom: 1px solid #e1e1e1;
    }

    .guard-dog-tab-link.active {
        margin-bottom: 0;
        border-bottom-color: #e1e1e1;
        border-left: 3px solid #2271b1;
        padding-left: 17px;
    }
}

/* Loading States */
.guard-dog-loading {
    opacity: 0.6;
    pointer-events: none;
}

.guard-dog-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: guard-dog-spin 1s linear infinite;
}

@keyframes guard-dog-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notices */
.guard-dog-notice {
    padding: 12px;
    border-left: 4px solid #00a32a;
    background: #f0f6fc;
    margin: 15px 0;
}

.guard-dog-notice.error {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.guard-dog-notice.warning {
    border-left-color: #dba617;
    background: #fcf9e8;
}

/* ===== TEMPORARY ACCESS PAGE STYLES ===== */

/* Admin Grid Layout */
.guard-dog-admin-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .guard-dog-admin-grid {
        grid-template-columns: 1fr;
    }
}

.guard-dog-main-content {
    /* Main content area */
}

.guard-dog-sidebar {
    /* Sidebar area */
}

/* Page Title */
.guard-dog-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 8px;
}

.guard-dog-page-subtitle,
.guard-dog-page-description {
    color: #646970;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* Shared tabbed admin interfaces */
.guard-dog-tabbed-interface {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.guard-dog-tab-nav {
    display: flex;
    flex-wrap: wrap;
    background: #f6f7f7;
    border-bottom: 1px solid #ccd0d4;
}

.guard-dog-tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    text-decoration: none;
    color: #646970;
    font-weight: 500;
    border-right: 1px solid #e1e1e1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.guard-dog-tab-link:hover {
    background: #fff;
    color: #2271b1;
}

.guard-dog-tab-link.active {
    background: #fff;
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    margin-bottom: -1px;
}

.guard-dog-tab-link .dashicons {
    font-size: 16px;
}

.guard-dog-tab-content {
    padding: 0;
}

.guard-dog-tab-panel {
    display: none;
    padding: 25px;
}

.guard-dog-tab-panel.active {
    display: block;
}

.guard-dog-tab-panel h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
}

.guard-dog-tab-panel h3 .dashicons {
    color: #2271b1;
}

.guard-dog-tab-panel p {
    margin-bottom: 20px;
    color: #646970;
    line-height: 1.6;
}

/* Card Header Styles */
.guard-dog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.guard-dog-card-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

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

/* Toggle Switch */
.guard-dog-card-toggle {
    /* Container for toggle */
}

/* Toggle Switch Styles */
.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: #2271b1;
}

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

/* Form Styles */
.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;
}

.guard-dog-form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1d2327;
}

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

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

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

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

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

.guard-dog-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

.guard-dog-table tbody tr:hover {
    background: #f9f9f9;
}

/* Badge Styles */
.guard-dog-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f6fc;
    color: #2271b1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.guard-dog-badge-expired {
    background: #fcf0f1;
    color: #d63638;
}

/* Role Badges */
.guard-dog-role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.guard-dog-role-subscriber {
    background: #e1f5fe;
    color: #0277bd;
}

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

.guard-dog-role-author {
    background: #e8f5e8;
    color: #2e7d32;
}

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

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

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

.guard-dog-temp-link {
    background: #f6f7f7;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guard-dog-copy-btn {
    padding: 4px 8px;
    min-height: auto;
}

/* Usage Bar */
.guard-dog-usage-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f1;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.guard-dog-usage-fill {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease;
}

/* Status Indicators */
.guard-dog-status-active {
    background: #d1e7dd;
    color: #0f5132;
}

.guard-dog-status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* Meta Text */
.guard-dog-meta {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

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

.guard-dog-empty-state .dashicons {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.guard-dog-empty-state h3 {
    margin: 16px 0 8px;
    color: #1d2327;
}

/* Sidebar Cards */
.guard-dog-sidebar-card {
    background: white;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.guard-dog-sidebar-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 16px;
}

/* Stats Grid */
.guard-dog-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.guard-dog-stat {
    text-align: center;
}

.guard-dog-stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #2271b1;
}

.guard-dog-stat-label {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

/* Tips */
.guard-dog-tips {
    /* Container for tips */
}

.guard-dog-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.guard-dog-tip:last-child {
    margin-bottom: 0;
}

.guard-dog-tip .dashicons {
    color: #2271b1;
    margin-top: 2px;
    flex-shrink: 0;
}

.guard-dog-tip strong {
    display: block;
    margin-bottom: 4px;
    color: #1d2327;
}

.guard-dog-tip p {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.4;
}

/* Quick Actions */
.guard-dog-quick-actions {
    /* Container for quick actions */
}

.guard-dog-quick-actions .button {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Countdown Timer */
.guard-dog-countdown {
    font-size: 12px;
    color: #646970;
    margin-top: 2px;
}

/* Expired Row */
.guard-dog-expired-row {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guard-dog-form-grid {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .guard-dog-temp-link {
        max-width: 150px;
    }
} 

/* Warning and Notice Styles */
.guard-dog-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    color: #856404;
}

.guard-dog-warning strong {
    color: #d63031;
}

.guard-dog-section {
    margin-bottom: 30px;
}

.guard-dog-section h4 {
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f1;
}

/* Security Notice Enhancement */
.guard-dog-security-notice {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.guard-dog-security-notice h4 {
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.guard-dog-security-notice ul {
    margin: 0;
    padding-left: 20px;
}

.guard-dog-security-notice li {
    margin-bottom: 5px;
    color: #495057;
    font-size: 13px;
}

.guard-dog-security-notice li:last-child {
    margin-bottom: 0;
}

/* Help Section Styles */
.guard-dog-help-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.guard-dog-help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guard-dog-help-section h4 {
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
}

.guard-dog-ip-display {
    background: #f8f9fa;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guard-dog-ip-display code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #2271b1;
    background: #e7f3ff;
    padding: 2px 6px;
    border-radius: 3px;
}

.guard-dog-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
}

.guard-dog-status-indicator.enabled {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.guard-dog-status-indicator.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.guard-dog-tips-list {
    margin: 0;
    padding-left: 20px;
}

.guard-dog-tips-list li {
    margin-bottom: 8px;
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
}

.guard-dog-tips-list li:last-child {
    margin-bottom: 0;
}

.guard-dog-quick-actions {
    margin-top: 10px;
}

.guard-dog-quick-actions .button {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
} 
