/**
 * Easy Invoice Pro Client Area Styles
 *
 * @package EasyInvoicePro
 */

/* Client Dashboard Styles */
.easy-invoice-client-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Login Section */
.easy-invoice-login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 20px 0;
}

.easy-invoice-login-section {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-container h2 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
}

.login-description {
    color: #718096;
    margin-bottom: 30px;
    font-size: 16px;
}

.login-form,
.register-form {
    text-align: left;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.login-btn,
.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover,
.register-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.login-footer,
.register-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer a,
.register-footer a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

/* Client Dashboard */
.client-dashboard {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-section h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.welcome-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.dashboard-content {
    padding: 30px;
}

.dashboard-section {
    margin-bottom: 40px;
}

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

.section-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 20px;
    font-weight: 700;
}

.edit-profile-btn {
    background: #4299e1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* Profile Info */
.profile-info {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
}

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

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-item span {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

/* Profile Form */
.profile-form {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

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

.save-profile-btn {
    background: #48bb78;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-profile-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.cancel-edit-btn {
    background: #a0aec0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-edit-btn:hover {
    background: #718096;
}

/* Account Tabs */
.account-tabs {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-navigation {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.tab-nav-btn:hover {
    background: #edf2f7;
    color: #4a5568;
}

.tab-nav-btn.active {
    color: #4299e1;
    background: #fff;
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4299e1;
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.tab-icon svg {
    width: 18px;
    height: 18px;
}

.tab-content-wrapper {
    padding: 0;
}

.tab-content-pane {
    display: none;
    padding: 30px;
}

.tab-content-pane.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.overview-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #f7fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3,
.card-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #4299e1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Recent Activity */
.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4299e1;
    color: #fff;
    border-radius: 8px;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 12px;
    color: #718096;
}

.no-activity {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 20px;
}

/* Documents Section */
.documents-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.section-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-filter {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #4a5568;
}

/* Settings Section */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
}

.settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.settings-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: #edf2f7;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 14px;
    color: #718096;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4299e1;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
    text-align: left;
}

.action-btn:hover {
    background: #f7fafc;
    border-color: #4299e1;
    color: #4299e1;
    transform: translateY(-1px);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.action-icon svg {
    width: 16px;
    height: 16px;
}

.export-data-btn {
    color: #38a169;
}

.export-data-btn:hover {
    border-color: #38a169;
    color: #38a169;
}

.change-password-btn {
    color: #d69e2e;
}

.change-password-btn:hover {
    border-color: #d69e2e;
    color: #d69e2e;
}

.delete-account-btn {
    color: #e53e3e;
}

.delete-account-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
}

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

.close-modal:hover {
    background: #f7fafc;
    color: #4a5568;
}

#change-password-form {
    padding: 20px;
}

#change-password-form .form-group {
    margin-bottom: 20px;
}

#change-password-form label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

#change-password-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#change-password-form input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

#change-password-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.save-password-btn {
    background: #48bb78;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-password-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.cancel-password-btn {
    background: #a0aec0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-password-btn:hover {
    background: #718096;
}

/* Legacy Documents Tabs */
.documents-tabs {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-buttons {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #4299e1;
    background: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4299e1;
}

.tab-btn:hover {
    background: #edf2f7;
}

.tab-content {
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h4 {
    margin: 0 0 8px 0;
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #667eea);
}

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

.document-number {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.document-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: #fed7d7;
    color: #c53030;
}

.status-sent {
    background: #fef5e7;
    color: #d69e2e;
}

.status-paid {
    background: #c6f6d5;
    color: #38a169;
}

.status-overdue {
    background: #fed7d7;
    color: #c53030;
}

.status-accepted {
    background: #c6f6d5;
    color: #38a169;
}

.status-declined {
    background: #fed7d7;
    color: #c53030;
}

.document-body {
    margin-bottom: 16px;
}

.document-date {
    color: #718096;
    font-size: 14px;
    margin-bottom: 8px;
}

.document-total {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.document-actions {
    text-align: right;
}

.view-doc-btn {
    background: #4299e1;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-doc-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Legacy Styles for Backward Compatibility */
.easy-invoice-client-login-form,
.easy-invoice-client-profile {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.easy-invoice-client-login-form form,
.easy-invoice-client-profile form {
    margin: 0;
}

.easy-invoice-client-login-form label,
.easy-invoice-client-profile label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.easy-invoice-client-login-form input[type="text"],
.easy-invoice-client-login-form input[type="email"],
.easy-invoice-client-login-form input[type="password"],
.easy-invoice-client-login-form input[type="tel"],
.easy-invoice-client-profile input[type="text"],
.easy-invoice-client-profile input[type="email"],
.easy-invoice-client-profile input[type="password"],
.easy-invoice-client-profile input[type="tel"],
.easy-invoice-client-profile textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.easy-invoice-client-login-form input:focus,
.easy-invoice-client-profile input:focus,
.easy-invoice-client-profile textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.easy-invoice-client-login-form button,
.easy-invoice-client-profile button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.easy-invoice-client-login-form button:hover,
.easy-invoice-client-profile button:hover {
    background: #005a87;
}

/* Client Tables */
.easy-invoice-client-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.easy-invoice-client-table th,
.easy-invoice-client-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

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

.easy-invoice-client-table tr:hover {
    background: #f8f9fa;
}

.easy-invoice-client-table a {
    color: #007cba;
    text-decoration: none;
}

.easy-invoice-client-table a:hover {
    text-decoration: underline;
}

/* Messages */
.easy-invoice-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid;
}

.easy-invoice-message.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.easy-invoice-message.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .tab-nav-btn {
        min-width: 100px;
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .tab-icon {
        font-size: 16px;
    }
    
    .tab-content-pane {
        padding: 20px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .easy-invoice-client-login-form,
    .easy-invoice-client-profile {
        margin: 10px;
        padding: 15px;
    }
    
    .easy-invoice-client-table {
        font-size: 14px;
    }
    
    .easy-invoice-client-table th,
    .easy-invoice-client-table td {
        padding: 8px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .status-filter {
        width: 100%;
    }
}

/* Loading States */
.easy-invoice-loading {
    opacity: 0.6;
    pointer-events: none;
}

.easy-invoice-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation */
.easy-invoice-client-login-form .error,
.easy-invoice-client-profile .error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1) !important;
}

.easy-invoice-client-login-form .error-message,
.easy-invoice-client-profile .error-message {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

/* Enhanced Form Error States */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.form-group.has-error label {
    color: #e53e3e;
}

.ei-error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Legacy field-error class for backward compatibility */
.field-error {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

/* Login Failed Animation */
.login-failed {
    animation: shake 0.5s ease-in-out;
}

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

/* Enhanced Error Message Styling */
.easy-invoice-message.notice-error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.easy-invoice-message.notice-error p {
    margin: 0;
}

/* Enhanced Success Message Styling */
.easy-invoice-message.notice-success {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    color: #22543d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.easy-invoice-message.notice-success p {
    margin: 0;
} 

/* Document Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.documents-table thead {
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.documents-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.documents-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.documents-table tbody tr:hover {
    background: #f8fafc;
}

.document-number {
    font-weight: 600;
    color: #2d3748;
}

.document-date,
.document-due-date,
.document-expiry-date {
    color: #718096;
    font-size: 13px;
}

.document-status {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-sent {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-declined {
    background: #fee2e2;
    color: #991b1b;
}

.document-total {
    font-weight: 600;
    color: #2d3748;
    text-align: right;
}

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

.view-doc-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #4299e1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-doc-btn:hover {
    background: #3182ce;
    color: #fff;
    transform: translateY(-1px);
}

/* Responsive table */
@media (max-width: 768px) {
    .documents-table {
        font-size: 12px;
    }
    
    .documents-table th,
    .documents-table td {
        padding: 12px 8px;
    }
    
    .document-due-date,
    .document-expiry-date {
        display: none;
    }
} 