/* RDP Authorization App - Elderly-Friendly Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px; /* Larger base font for readability */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #e6f0ff;
}

.nav-logout {
    margin-left: auto;
    color: #666;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-centered {
    max-width: 600px;
    margin: 0 auto;
}

/* Typography */
.page-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Alerts */
.alert {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.alert-error {
    background-color: #fee;
    border: 2px solid #fcc;
    color: #c00;
}

.alert-success {
    background-color: #efe;
    border: 2px solid #cfc;
    color: #060;
}

.alert-info {
    background-color: #e6f3ff;
    border: 2px solid #cce5ff;
    color: #004085;
}

/* Forms */
.login-form,
.action-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

/* Checkbox */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-large {
    width: 100%;
    padding: 20px 30px;
    font-size: 1.4rem;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Info Box */
.info-box {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.info-box .info-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.info-box .info-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

/* Status Box */
.status-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.status-active {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.status-inactive {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

.status-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active .status-icon {
    background-color: #28a745;
    color: white;
}

.status-inactive .status-icon {
    background-color: #ffc107;
    color: #333;
}

.status-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.status-detail {
    font-size: 1.1rem;
    color: #555;
}

/* Success Page */
.success-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.success-message {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
}

/* Connection Info */
.connection-info {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 10px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    font-weight: 600;
    color: #555;
}

.info-row .info-value {
    font-family: monospace;
    font-size: 1.1rem;
}

.info-row .info-value.highlight {
    font-size: 1.3rem;
    color: #0066cc;
    font-weight: 600;
}

/* Instructions */
.instructions {
    margin: 30px 0;
}

.instruction-list {
    padding-left: 25px;
}

.instruction-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

/* Action Buttons */
.action-buttons {
    margin-top: 30px;
    text-align: center;
}

.action-form {
    margin-bottom: 15px;
}

/* Help Text */
.help-text {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-top: 20px;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table .ip-cell {
    font-family: monospace;
    font-weight: 600;
}

.row-expired {
    opacity: 0.6;
    background-color: #f8f8f8;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.badge-expired {
    background-color: #f8d7da;
    color: #721c24;
}

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

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Error Page */
.error-header {
    text-align: center;
    margin-bottom: 30px;
}

.error-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.error-message {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .card {
        padding: 25px 20px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-logout {
        margin-left: 0;
    }

    .status-box {
        flex-direction: column;
        text-align: center;
    }

    .info-row {
        flex-direction: column;
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}
