/* Time Delayed Redirects Admin Styles */

/* Main Container */
.wrap {
    background: #f9f9f9;
    margin: 20px 0 0 -20px;
    padding: 20px;
    border-radius: 8px;
}

.wrap h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

/* Tab Navigation */
.nav-tab-wrapper {
    border-bottom: 3px solid #3498db;
    margin: 0 0 30px;
    padding-top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    padding: 0;
    overflow: hidden;
}

.nav-tab {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 15px 20px;
    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-tab-active {
    background: white !important;
    color: #2c3e50 !important;
    border-radius: 0;
    box-shadow: inset 0 -3px 0 #3498db;
}

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

/* Content Sections */
.content-section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-section h2, .content-section h3 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    margin: 0;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e8ed;
    font-size: 18px;
    font-weight: 600;
}

.content-section-body {
    padding: 25px;
}

.content-section p {
    color: #5a6c7d;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Redirects Tab */
.redirect-rules-container {
    margin: 0;
}

.redirect-rules-header {
    background: #f8f9fa;
    border-bottom: 2px solid #3498db;
    border-radius: 6px 6px 0 0;
}

.redirect-rule-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background-color 0.2s ease;
}

.redirect-rule-row:hover:not(.header-row) {
    background: #f8f9fa;
}

.header-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-bottom: none;
}

.from-column, .to-column {
    flex: 1;
    margin-right: 15px;
}

.status-column {
    flex: 0 0 160px;
    margin-right: 15px;
}

.actions-column {
    flex: 0 0 120px;
    text-align: right;
}

.from-url-input,
.to-url-input,
.status-code-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.from-url-input:focus,
.to-url-input:focus,
.status-code-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.save-redirect,
.delete-redirect {
    margin: 0 3px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.save-redirect {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.save-redirect:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.4);
}

.delete-redirect {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.delete-redirect:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.redirect-actions {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
}

#add-redirect {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

#add-redirect:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

/* Settings Tab */
.settings-tab .form-table {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.settings-tab .form-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-weight: 600;
    padding: 20px 25px;
    width: 220px;
    border-bottom: 1px solid #e1e8ed;
}

.settings-tab .form-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e8ed;
}

.settings-tab input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 80px;
}

.settings-tab input[type="color"] {
    padding: 4px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    width: 60px;
    height: 40px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: none;
}

.settings-tab input[type="number"]:focus,
.settings-tab input[type="color"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.settings-tab textarea {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.settings-tab textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.settings-tab .description {
    color: #5a6c7d;
    font-style: italic;
    margin-top: 5px;
}

/* Export/Import Tab */
.export-section,
.import-section {
    margin-bottom: 0;
}

.export-options {
    margin: 20px 0;
}

.export-options .button {
    margin-right: 15px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.export-options .button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.export-options .button-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.export-options .button-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3);
}

.export-options .button-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #5d6d6e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(149, 165, 166, 0.4);
}

#import-form .form-table {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#import-form .form-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    font-weight: 600;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e8ed;
}

#import-form .form-table td {
    padding: 20px 25px;
}

#import-form input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e8ed;
    border-radius: 6px;
    background: #f8f9fa;
    width: 100%;
    transition: border-color 0.3s ease;
}

#import-form input[type="file"]:hover {
    border-color: #3498db;
}

/* Documentation Tab */
.doc-section {
    margin-bottom: 0;
}

.doc-section h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.doc-section h4 {
    color: #34495e;
    font-size: 16px;
    font-weight: 500;
    margin: 20px 0 10px;
}

.content-section-body ul {
    margin: 15px 0 15px 25px;
    line-height: 1.6;
    list-style-type: disc;
    padding-left: 20px;
}

.content-section-body li {
    margin: 8px 0;
    color: #5a6c7d;
    list-style-type: disc;
    display: list-item;
}

.doc-section ul {
    margin: 15px 0 15px 25px;
    line-height: 1.6;
    list-style-type: disc;
    padding-left: 20px;
}

.doc-section li {
    margin: 8px 0;
    color: #5a6c7d;
    list-style-type: disc;
    display: list-item;
}

.doc-section li strong {
    color: #2c3e50;
}

.doc-section code {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #e74c3c;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    border: 1px solid #e1e8ed;
}

.doc-section p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Status Messages */
.notice {
    border-radius: 6px;
    padding: 15px 20px;
    margin: 15px 0;
    border-left: 4px solid;
}

.notice-success {
    background: #d4edda;
    border-left-color: #27ae60;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-left-color: #e74c3c;
    color: #721c24;
}

/* Buttons */
.button {
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-decoration: none !important;
}

.button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3) !important;
}

.button-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wrap {
        margin: 10px 0 0 -10px;
        padding: 15px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .redirect-rule-row {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .from-column,
    .to-column,
    .status-column,
    .actions-column {
        margin: 8px 0;
        flex: none;
    }
    
    .actions-column {
        text-align: left;
    }
    
    .settings-tab .form-table th,
    .settings-tab .form-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    
    .settings-tab .form-table th {
        border-bottom: none;
    }
}
