* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 400px;
    position: relative;
}

/* Screen Management */
.screen {
    display: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.screen.active {
    display: block;
}

/* Landing Page Styles */
.landing-header {
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.td-logo-large {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A850;
    font-weight: bold;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.landing-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.landing-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.landing-content {
    padding: 40px 20px 20px;
    text-align: center;
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 80, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00A850;
    border: 2px solid #00A850;
}

.btn-secondary:hover {
    background: #00A850;
    color: white;
    transform: translateY(-2px);
}

/* Green button state when inputs are filled */
.btn.btn-filled {
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%) !important;
    color: white !important;
    border: 2px solid #00A850 !important;
    box-shadow: 0 4px 15px rgba(0, 168, 80, 0.3) !important;
}

.btn.btn-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 80, 0.4) !important;
}

.landing-features {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    color: #666;
}

.feature-item i {
    font-size: 24px;
    color: #00A850;
    margin-bottom: 8px;
    display: block;
}

.feature-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Login/Register Header Styles */
.login-header, .register-header, .dashboard-header, .admin-dashboard-header {
    background-color: #00A850;
    padding: 20px;
    text-align: center;
    position: relative;
    color: white;
}

.back-btn, .logout-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.td-logo {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00A850;
    font-weight: bold;
    font-size: 22px;
}

.login-header h1, .register-header h1, .dashboard-header h1, .admin-dashboard-header h1 {
    font-size: 24px;
    font-weight: 500;
}

/* Form Styles */
.login-form, .register-form {
    padding: 30px 20px 20px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: #00A850;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 168, 80, 0.2);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #00A850;
}

.forgot-password {
    margin-bottom: 20px;
}

.forgot-password a {
    color: #00A850;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.remember-me label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    color: #666;
}

.signup-section, .login-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.signup-section p, .login-section p {
    color: #666;
    margin-bottom: 10px;
    font-size: 15px;
}

.signup-section a, .login-section a {
    color: #00A850;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.signup-section a:hover, .login-section a:hover {
    text-decoration: underline;
}

.bold {
    font-weight: 700;
}

/* Message Styles */
.error-message, .success-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Image Upload Styles */
.image-upload-container {
    margin-bottom: 20px;
    text-align: center;
}

.image-upload-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.upload-btn {
    background-color: #00A850;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background-color: #007C3E;
    transform: translateY(-1px);
}

.image-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-preview-placeholder {
    text-align: center;
    color: #999;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.image-preview-placeholder i {
    font-size: 24px;
    color: #ccc;
}

/* Dashboard Styles */
.dashboard-content, .admin-dashboard-content {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.profile-image-container {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image-display {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 3px solid #00A850;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.profile-image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    height: 100%;
}

.profile-image-placeholder i {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 5px;
}

.time-date-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%);
    border-radius: 8px;
    color: white;
}

.current-time {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.current-date {
    font-size: 14px;
    opacity: 0.9;
}

.email-notification {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #00A850;
}

.email-notification p {
    margin-bottom: 5px;
    font-size: 14px;
}

.email-address {
    font-weight: bold;
    color: #00A850;
}

.dashboard-info-panel {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.info-panel-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.info-panel-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 168, 80, 0.2);
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 80, 0.3);
}

.action-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.action-btn span {
    font-size: 14px;
    font-weight: 600;
}

.accounts-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
}

.view-all {
    color: #00A850;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.account-summary {
    background: linear-gradient(135deg, #00A850 0%, #007C3E 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.account-summary p {
    margin: 0;
    font-size: 16px;
}

.account-summary strong {
    font-size: 20px;
    font-weight: bold;
}

.account-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.account-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.account-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.account-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.account-type-badge {
    background-color: #e8f5e9;
    color: #00A850;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.account-balance {
    font-size: 18px;
    font-weight: bold;
    color: #00A850;
}

.transaction-history {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-details h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.transaction-details p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.transaction-amount {
    font-size: 14px;
    font-weight: bold;
}

.transaction-amount.positive {
    color: #28a745;
}

.transaction-amount.negative {
    color: #dc3545;
}

/* Admin Styles */
.admin-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.admin-btn {
    background: linear-gradient(135deg, #007C3E 0%, #00A850 100%);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 62, 0.2);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 62, 0.3);
}

.admin-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    display: none;
}

.admin-form.active {
    display: block;
}

.admin-form h2 {
    color: #007C3E;
    margin-bottom: 20px;
    font-size: 20px;
}

.btn-admin {
    background: linear-gradient(135deg, #007C3E 0%, #00A850 100%);
    color: white;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #006633 0%, #008844 100%);
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.user-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 5px;
}

.user-action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.activate-btn {
    background-color: #28a745;
    color: white;
}

.deactivate-btn {
    background-color: #ffc107;
    color: #333;
}

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

.edit-btn {
    background-color: #007bff;
    color: white;
}

.user-action-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Table Styles */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.table-info {
    color: #666;
    font-size: 14px;
}

.user-management-table-container {
    overflow-x: auto;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.user-management-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.user-management-table th,
.user-management-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    white-space: nowrap;
}

.user-management-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-management-table td {
    vertical-align: middle;
}

.user-management-table tr:hover {
    background-color: #f8f9fa;
}

.scroll-hint {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.profile-image-cell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 2px solid #00A850;
}

.profile-image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-cell i {
    color: #999;
    font-size: 16px;
}

/* DateTime Group Styles */
.datetime-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.datetime-group .input-group {
    flex: 1;
    margin-bottom: 0;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #00A850;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.settings-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.settings-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.settings-tab.active {
    color: #00A850;
    border-bottom-color: #00A850;
}

.settings-tab:hover {
    color: #00A850;
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
}

.settings-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.account-note {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #00A850;
}

/* Edit User Modal Styles */
.edit-user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.edit-user-modal.active {
    display: flex;
}

.edit-user-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.edit-user-header {
    background-color: #007C3E;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-user-header h2 {
    margin: 0;
    font-size: 20px;
}

.edit-user-form {
    padding: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Transfer Modal Specific Styles */
.bank-selection-container {
    margin-bottom: 20px;
}

.routing-account-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.validation-feedback {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 0;
}

.validation-feedback.valid {
    color: #28a745;
}

.validation-feedback.invalid {
    color: #dc3545;
}

.code-step-container {
    display: none;
    margin-bottom: 20px;
}

.code-step-container.active {
    display: block;
}

.code-input-feedback {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 0;
}

.code-input-feedback.error {
    color: #dc3545;
}

#transfer-success {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.transfer-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.transfer-details h4 {
    color: #333;
    margin-bottom: 10px;
}

.transfer-details p {
    margin: 5px 0;
    color: #666;
}

/* Footer Styles */
.footer {
    background-color: #f5f5f5;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    flex: 1;
    min-width: 80px;
    max-width: 100px;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.footer-icon:hover .icon-circle {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #f9f9f9;
}

.icon-circle i {
    color: #00A850;
    font-size: 18px;
}

.footer-text {
    color: #333;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Notification System */
.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00A850;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 350px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.error {
    background-color: #dc3545;
}

.notification-toast.warning {
    background-color: #ffc107;
    color: #333;
}

.notification-toast.success {
    background-color: #28a745;
}

.notification-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
}

/* User Management Enhancement - Auto-update styles */
.user-config-file {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.user-config-file h3 {
    color: #007C3E;
    margin-bottom: 10px;
    font-size: 16px;
}

.user-config-file pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
}

.config-update-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
    }

    .landing-buttons {
        gap: 12px;
    }

    .btn {
        padding: 14px 18px;
        font-size: 15px;
    }

    .td-logo-large {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .landing-title {
        font-size: 24px;
    }

    .landing-content {
        padding: 30px 20px 20px;
    }

    .login-form, .register-form {
        padding: 25px 20px 20px;
    }

    .dashboard-content, .admin-dashboard-content {
        padding: 15px;
    }

    .admin-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-btn {
        padding: 16px;
    }

    .info-panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .datetime-group {
        flex-direction: column;
        gap: 0;
    }

    .datetime-group .input-group {
        margin-bottom: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        min-width: 100%;
    }

    .modal-content, .edit-user-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    .notification-toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .landing-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .feature-item {
        width: 100px;
    }

    .footer {
        padding: 15px 10px;
        gap: 5px;
    }

    .footer-icon {
        min-width: 60px;
        max-width: 80px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    .icon-circle i {
        font-size: 16px;
    }

    .footer-text {
        font-size: 10px;
    }

    .input-group input, .input-group select, .input-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .td-logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .login-header h1, .register-header h1, .dashboard-header h1, .admin-dashboard-header h1 {
        font-size: 20px;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #00A850;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .footer,
    .back-btn,
    .logout-btn,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .screen {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #fff;
    }
    
    .action-btn {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}