/* فونت یکان - فونت اصلی سیستم */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YekanBakh', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.main-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
}

.page-header p {
    font-size: 1.1rem;
    color: white;
    opacity: 0.9;
    font-weight: 300;
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.dialog-overlay.show {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

/* Delete Dialog Specific Styles */
.delete-dialog {
    max-width: 450px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #dc3545;
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.3);
}

.delete-dialog .dialog-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: none;
}

.delete-dialog .dialog-icon {
    font-size: 2rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.delete-dialog .dialog-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.delete-dialog .dialog-body {
    padding: 25px;
    text-align: center;
}

.delete-dialog .dialog-body p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.6;
}

.password-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.password-preview strong {
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: 600;
}

.warning-text {
    color: #dc3545 !important;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 15px !important;
}

.delete-dialog .dialog-actions {
    padding: 20px 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.delete-dialog .btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.delete-dialog .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.delete-dialog .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.delete-dialog .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.delete-dialog .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.delete-dialog .btn-danger:active {
    transform: translateY(0);
}

.delete-dialog .btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.dialog-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dialog-overlay.show .dialog-content {
    transform: scale(1) translateY(0);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.dialog-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-close:hover {
    background: #f5f5f5;
    color: #333;
}

.dialog-form {
    padding: 25px;
}

.dialog-form .form-group {
    margin-bottom: 20px;
}

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

.dialog-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    text-align: center;
    font-family: 'YekanBakh', Arial, sans-serif;
    -webkit-text-security: none !important;
    -moz-text-security: none !important;
    text-security: none !important;
}

.dialog-form .form-group input::placeholder {
    text-align: center;
    font-family: 'YekanBakh', Arial, sans-serif;
    opacity: 0.7;
}

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

.dialog-form .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.dialog-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dialog-form .btn:active {
    transform: translateY(0);
}

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

.dialog-form .btn-secondary:hover {
    background: #5a6268;
}

.dialog-form .btn-primary {
    background: #667eea;
    color: white;
}

.dialog-form .btn-primary:hover {
    background: #5a6fd8;
}

.dialog-form .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.dialog-form .btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    transform: translateY(-20px);
    opacity: 0;
    animation: slideInDown 0.4s ease forwards;
}

@keyframes slideInDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* Password Count */
.password-count {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.password-count::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.count-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.count-number.updated {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.count-text {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Main Actions */
.main-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.action-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.action-card p {
    color: #666;
    font-size: 1rem;
}

/* Features */
.features {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Forms */
.form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600; /* ضخیم‌تر */
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'YekanBakh', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #ffffff;
    letter-spacing: 0.3px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400; /* ضخیم‌تر از قبل */
    letter-spacing: 0.2px;
    opacity: 0.8;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600; /* ضخیم‌تر */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

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

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

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.empty-state p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* Passwords Grid */
.passwords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.password-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.password-card:hover {
    transform: translateY(-3px);
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.password-header h3 {
    color: #333;
    font-size: 1.3rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

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

.detail-item {
    margin-bottom: 15px;
}

.detail-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.copy-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copy-field input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.copy-btn, .toggle-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.copy-btn:hover {
    background: #218838;
}

.toggle-btn {
    background: #17a2b8;
    color: white;
}

.toggle-btn:hover {
    background: #138496;
}

.password-actions {
    text-align: center;
}

/* Footer */
.main-footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.8;
}

/* Login Styles */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 35px; /* کاهش padding */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px; /* کاهش margin */
}

.login-header h1 {
    color: #333;
    font-size: 2rem; /* کوچک‌تر از قبل */
    margin-bottom: 15px;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 300;
}

.login-form {
    margin-bottom: 25px; /* کاهش margin */
}

.login-form .form-group {
    margin-bottom: 25px; /* کاهش margin */
}

.login-form .form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.login-form .form-group input {
    padding: 18px 22px;
    border-radius: 16px;
    font-family: 'YekanBakh', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.login-form .form-group input::placeholder {
    font-weight: 400; /* ضخیم‌تر از قبل */
    letter-spacing: 0.2px;
    opacity: 0.8;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.login-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.login-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.login-info p {
    margin-bottom: 8px;
    color: #555;
}

.login-info .note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Logout Card */
.logout-card {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
}

.logout-card:hover {
    background: linear-gradient(135deg, #ff5252, #e53935) !important;
}

.logout-card h3,
.logout-card p {
    color: white !important;
}

/* Admin Card */
.admin-card {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.admin-card:hover {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
}

.admin-card h3,
.admin-card p {
    color: white !important;
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, #6f42c1, #e83e8c) !important;
    color: white !important;
}

.profile-card:hover {
    background: linear-gradient(135deg, #5a32a3, #d63384) !important;
}

.profile-card h3,
.profile-card p {
    color: white !important;
}

/* Search Styles */
.search-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 20px 50px 20px 24px;
    border: 2px solid #e1e5e9;
    border-radius: 30px;
    font-size: 1rem;
    font-family: 'YekanBakh', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 16px rgba(0,0,0,0.1);
    background: white;
}

.search-input::placeholder {
    color: #999;
    font-weight: 400; /* ضخیم‌تر از قبل */
    letter-spacing: 0.2px;
    opacity: 0.8;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.search-results-info {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Security enhancements */
input[type="password"] {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

/* Prevent password managers from interfering - only for password fields */
input[type="password"][data-lpignore="true"] {
    -webkit-text-security: disc !important;
    -moz-text-security: disc !important;
    text-security: disc !important;
}

/* Firefox specific protection */
@-moz-document url-prefix() {
    input[type="password"] {
        -moz-text-security: disc !important;
        background-color: transparent !important;
    }
    
    input[autocomplete="off"] {
        -moz-autocomplete: off !important;
    }
}

/* Additional Firefox protection */
input[type="password"] {
    -moz-text-security: disc !important;
    -webkit-text-security: disc !important;
    text-security: disc !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Prevent autocomplete globally */
input {
    -webkit-autocomplete: off !important;
    -moz-autocomplete: off !important;
    autocomplete: off !important;
    background-color: transparent !important;
}

input[autocomplete="off"] {
    -webkit-autocomplete: off !important;
    -moz-autocomplete: off !important;
    autocomplete: off !important;
    background-color: transparent !important;
}

/* Lockout Styles */
.lockout-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.lockout-header {
    margin-bottom: 30px;
}

.lockout-header h1 {
    color: #dc3545;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.lockout-header p {
    color: #666;
    font-size: 1.1rem;
}

.lockout-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.lockout-info h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.lockout-info p {
    color: #856404;
    margin: 0;
}

.unlock-form {
    margin-bottom: 30px;
}

.security-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: right;
}

.security-info h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-info li {
    color: #666;
    margin-bottom: 8px;
    padding-right: 20px;
    position: relative;
}

.security-info li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* User Management Styles */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.user-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-3px);
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.user-header h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
}

.admin-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.user-details {
    margin-bottom: 20px;
}

.user-details .detail-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details .detail-item label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.user-details .detail-item span {
    color: #666;
    font-size: 0.9rem;
}

.user-actions {
    text-align: center;
}

.current-user {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Profile Management Styles */
.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card, .form-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.info-card h3, .form-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-item label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.current-value {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.form-card .form {
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: none;
}

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

.form-card .form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.form-card .form-group input {
    padding: 18px 22px;
    border-radius: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-card .form-group input::placeholder {
    font-weight: 300;
    letter-spacing: 0.2px;
    opacity: 0.8;
}

.form-card .form-actions {
    margin-top: 25px;
    justify-content: center;
}

/* Password Actions */
.password-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-header h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .main-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .action-card {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .action-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .action-card h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .action-card p {
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .passwords-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .main-header h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .main-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .action-card {
        padding: 15px 12px;
    }
    
    .action-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .action-card h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .action-card p {
        font-size: 0.85rem;
    }
    
    .password-count {
        margin: 20px 0;
        padding: 15px;
    }
    
    .count-number {
        font-size: 2rem;
    }
    
    .count-text {
        font-size: 0.9rem;
    }
    
    .dialog-content {
        width: 95%;
        margin: 10px;
    }
    
    .delete-dialog {
        max-width: 95%;
        margin: 20px;
    }
    
    .delete-dialog .dialog-header {
        padding: 15px;
    }
    
    .delete-dialog .dialog-body {
        padding: 20px;
    }
    
    .delete-dialog .dialog-actions {
        padding: 15px 20px 20px;
        flex-direction: column;
    }
    
    .delete-dialog .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dialog-header {
        padding: 15px 20px;
    }
    
    .dialog-header h3 {
        font-size: 1.1rem;
    }
    
    .dialog-form {
        padding: 20px;
    }
    
    .dialog-form .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .dialog-form .btn {
        width: 100%;
    }
    
    .copy-field {
        flex-direction: column;
    }
    
    .copy-field input {
        margin-bottom: 8px;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .search-input {
        padding: 15px 45px 15px 15px;
        font-size: 0.9rem;
    }
    
    .password-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .password-actions .btn {
        width: 100%;
    }
    
    .profile-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card, .form-card {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
