/* Rocketoolz File Manager Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* General Styles */
.rocketoolz-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    background: #f7fafc;
}

.rocketoolz-title {
    color: #1a202c;
    border-bottom: 2px solid #002CF4;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 24px;
}

.rocketoolz-card {
    background: linear-gradient(145deg, #f7fafc, #e2e8f0);
    border-radius: 12px;
    box-shadow: 8px 8px 16px #c4c7cc, -8px -8px 16px #ffffff;
    padding: 25px;
    margin-bottom: 25px;
}

/* Forms */
.rocketoolz-form {
    display: grid;
    gap: 20px;
    border: 2px solid #002CF4;
    padding: 25px;
    border-radius: 12px;
    background: #edf2f7;
    box-shadow: inset 4px 4px 8px #c4c7cc, inset -4px -4px 8px #ffffff;
}

.session-form, .cookies-form, .directlogin-form, .digiworld-form {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.rocketoolz-search,
.rocketoolz-filter {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #e2e8f0, #f7fafc);
    box-shadow: inset 5px 5px 10px #c4c7cc, inset -5px -5px 10px #ffffff;
    font-size: 14px;
    color: #1a202c;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.rocketoolz-search:focus,
.rocketoolz-filter:focus {
    outline: none;
    box-shadow: inset 3px 3px 6px #c4c7cc, inset -3px -3px 6px #ffffff, 0 0 0 2px #0052cc;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    margin-bottom: 0;
    font-weight: normal;
}

/* Buttons */
.rocketoolz-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(145deg, #002CF4, #0052cc);
    box-shadow: 4px 4px 8px #c4c7cc, -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: normal;
    vertical-align: middle;
}

.rocketoolz-button:hover {
    background: linear-gradient(145deg, #0052cc, #002CF4);
    box-shadow: 6px 6px 12px #b0b3b8, -6px -6px 12px #ffffff;
    transform: translateY(-1px);
}

.rocketoolz-button:active {
    box-shadow: inset 4px 4px 8px #0023b3, inset -4px -4px 8px #005fff;
    transform: translateY(1px);
}

.rocketoolz-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #a0aec0;
    box-shadow: none;
    transform: none;
}

.rocketoolz-primary {
    /* Already styled by .rocketoolz-button */
}

.rocketoolz-edit {
    background: linear-gradient(145deg, #28a745, #38c95f);
}
.rocketoolz-edit:hover {
    background: linear-gradient(145deg, #38c95f, #28a745);
}
.rocketoolz-edit:active {
    box-shadow: inset 4px 4px 8px #1e7e34, inset -4px -4px 8px #4dcf72;
}

.rocketoolz-delete {
    background: linear-gradient(145deg, #dc3545, #e5505e);
}
.rocketoolz-delete:hover {
    background: linear-gradient(145deg, #e5505e, #dc3545);
}
.rocketoolz-delete:active {
    box-shadow: inset 4px 4px 8px #b02a37, inset -4px -4px 8px #f26774;
}

/* Table Styles */
.rocketoolz-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 6px 6px 12px #c4c7cc, -6px -6px 12px #ffffff;
}

.rocketoolz-table th,
.rocketoolz-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 14px;
    vertical-align: middle;
}

.rocketoolz-table th {
    background: linear-gradient(145deg, #e2e8f0, #cbd5e0);
    font-weight: 600;
    color: #1a202c;
}

.rocketoolz-table tr.active td { background: #f0fff4; }
.rocketoolz-table tr.expiring td { background: #fffaf0; }
.rocketoolz-table tr.expired td { background: #fff5f5; }
.rocketoolz-table tr.expired .remaining-time .expired-text { color: #c53030; font-weight: bold; }

.rocketoolz-table tr:not(:first-child):hover td {
    background: #e2e8f0 !important;
    cursor: default;
}

.rocketoolz-table .action-buttons {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.rocketoolz-table .action-buttons .rocketoolz-button {
    padding: 6px 12px;
    font-size: 13px;
}

/* Output Area */
.rocketoolz-output textarea {
    width: 100%;
    height: 200px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    padding: 15px;
    background: linear-gradient(145deg, #edf2f7, #e2e8f0);
    box-shadow: inset 4px 4px 8px #c4c7cc, inset -4px -4px 8px #ffffff;
    color: #1a202c;
    font-family: monospace;
    font-size: 13px;
    box-sizing: border-box;
}

/* Controls (Search/Filter) */
.rocketoolz-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.rocketoolz-search {
    flex-grow: 1;
}

.rocketoolz-filter {
    min-width: 150px;
    width: auto;
    flex-grow: 0;
}

/* Delete Form on Edit Page */
.rocketoolz-delete-form {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Expiry Tabs Styling */
.expiry-group label:first-child {
    margin-bottom: 10px;
}

.expiry-tabs {
    display: inline-flex;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.expiry-tab {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f6f7f7;
    color: #2c3338;
    border-right: 1px solid #ccd0d4;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.expiry-tab:last-child {
    border-right: none;
}

.expiry-tab:hover {
    background-color: #e8eaeb;
}

.expiry-tab.active {
    background-color: #007cba;
    color: #ffffff;
    font-weight: 600;
    border-color: #007cba;
}

.custom-expiry-container {
    margin-top: 5px;
}

.rocketoolz-custom-expiry-input {
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    max-width: 120px;
}

/* --- NEW Pagination Styles --- */
.rocketoolz-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.rocketoolz-pagination .pagination-button {
    margin: 0 4px;
    padding: 8px 14px;
    font-size: 14px;
    background: linear-gradient(145deg, #e2e8f0, #f7fafc);
    color: #2d3748;
    box-shadow: 3px 3px 6px #c4c7cc, -3px -3px 6px #ffffff;
}

.rocketoolz-pagination .pagination-button:hover:not(:disabled) {
    background: linear-gradient(145deg, #f7fafc, #e2e8f0);
    color: #002CF4;
    box-shadow: 4px 4px 8px #b0b3b8, -4px -4px 8px #ffffff;
}

.rocketoolz-pagination .pagination-button.active {
    background: linear-gradient(145deg, #002CF4, #0052cc);
    color: #ffffff;
    font-weight: bold;
    box-shadow: inset 3px 3px 6px #0023b3, inset -3px -3px 6px #005fff;
    cursor: default;
}

.rocketoolz-pagination .pagination-button:disabled {
    background: #edf2f7;
    color: #a0aec0;
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.rocketoolz-pagination .pagination-dots {
    display: inline-block;
    padding: 8px 5px;
    color: #718096;
    vertical-align: middle;
}

#pagination-info {
    display: block;
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 14px;
}

/* --- NEW Tabs Section Styles --- */
.rocketoolz-tabs-section {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-radius: 12px;
    box-shadow: 6px 6px 15px #d1d9e6, -6px -6px 15px #ffffff;
    padding: 20px;
    margin-bottom: 30px;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    background: linear-gradient(145deg, #e2e8f0, #f7fafc);
    box-shadow: 4px 4px 8px #c4c7cc, -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tab-button:hover {
    background: linear-gradient(145deg, #f7fafc, #e2e8f0);
    box-shadow: 6px 6px 12px #b0b3b8, -6px -6px 12px #ffffff;
    transform: translateY(-1px);
}

.tab-button.active {
    background: linear-gradient(145deg, #002CF4, #0052cc);
    color: #ffffff;
    box-shadow: inset 3px 3px 6px #0023b3, inset -3px -3px 6px #005fff;
    transform: translateY(0);
}

.tab-button:active {
    box-shadow: inset 4px 4px 8px #0023b3, inset -4px -4px 8px #005fff;
    transform: translateY(1px);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rocketoolz-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        box-shadow: none;
    }
    .rocketoolz-table th,
    .rocketoolz-table td {
        white-space: nowrap;
    }
    .rocketoolz-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .rocketoolz-filter {
        min-width: 100%;
    }
    .rocketoolz-pagination .pagination-button {
        padding: 6px 10px;
        margin: 0 2px;
    }
    #pagination-info {
        font-size: 13px;
    }
    .tabs-nav {
        flex-direction: column;
        gap: 10px;
    }
    .tab-button {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .rocketoolz-wrap {
        padding: 15px;
    }
    .rocketoolz-card, .rocketoolz-form {
        padding: 15px;
    }
    .rocketoolz-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    .rocketoolz-table th,
    .rocketoolz-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .rocketoolz-pagination .pagination-button {
        padding: 5px 8px;
        font-size: 12px;
    }
    .rocketoolz-pagination .pagination-dots {
        padding: 5px 3px;
    }
    #pagination-info {
        font-size: 12px;
    }
    .rocketoolz-tabs-section {
        padding: 15px;
    }
}

/* Font and Gradient Enhancements */
body, input, textarea, select, button {
    font-family: 'Quicksand', sans-serif;
}

.rocketoolz-button.rocketoolz-primary {
    background: linear-gradient(135deg, #007bff 0%, #0052cc 100%);
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
}
.rocketoolz-button.rocketoolz-primary:hover {
    background: linear-gradient(135deg, #0069d9 0%, #0041a3 100%);
    box-shadow: 0 6px 12px rgba(0, 82, 204, 0.4);
    transform: translateY(-2px);
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15), inset 2px 2px 4px #d1d9e6, inset -2px -2px 4px #ffffff !important;
}