/**
 * Style panelu klienta
 */

/* Resetowanie */
.ap-container * {
    box-sizing: border-box;
}

/* Główny kontener */
.ap-login-container,
.ap-dashboard-container,
.ap-projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Logowanie */
.ap-login-box {
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ap-login-header {
    padding: 30px;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.ap-login-header h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 400;
}

.ap-login-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.8;
}

.ap-login-form {
    padding: 30px;
}

.ap-form-group {
    margin-bottom: 20px;
}

.ap-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.ap-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ap-input:focus {
    border-color: #000;
    outline: none;
}

.ap-form-actions {
    margin-top: 30px;
}

.ap-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ap-button:hover {
    background-color: #333;
}

.ap-button-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ap-button-secondary:hover {
    background-color: #e5e5e5;
}

.ap-button-text {
    background: none;
    color: #000;
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
}

.ap-button-text:hover {
    background: none;
    color: #333;
}

.ap-form-info {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.ap-form-info a {
    color: #000;
    text-decoration: none;
}

.ap-form-info a:hover {
    text-decoration: underline;
}

.ap-message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.ap-message-error {
    background-color: #ffebee;
    color: #c62828;
}

.ap-message-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Pola OTP */
.ap-otp-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ap-otp-input {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ap-otp-input:focus {
    border-color: #000;
    outline: none;
}

/* Dashboard */
.ap-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ap-dashboard-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.ap-last-login {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.ap-dashboard-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
}

.ap-dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 0 15px 30px;
    flex: 1;
    min-width: 300px;
}

.ap-dashboard-summary,
.ap-dashboard-help {
    flex-basis: calc(50% - 30px);
}

.ap-dashboard-projects,
.ap-dashboard-invoices,
.ap-dashboard-notifications {
    flex-basis: calc(50% - 30px);
}

.ap-dashboard-card h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ap-card-header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Podsumowanie */
.ap-summary-items {
    display: flex;
    flex-wrap: wrap;
}

.ap-summary-item {
    flex-basis: calc(33.333% - 10px);
    margin: 5px;
    display: flex;
    align-items: center;
}

.ap-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.ap-icon-projects:before,
.ap-icon-invoices:before,
.ap-icon-notifications:before,
.ap-icon-email:before,
.ap-icon-phone:before {
    font-family: dashicons;
    font-size: 20px;
    color: #000;
}

.ap-icon-projects:before {
    content: "\f481";
}

.ap-icon-invoices:before {
    content: "\f316";
}

.ap-icon-notifications:before {
    content: "\f330";
}

.ap-icon-email:before {
    content: "\f465";
}

.ap-icon-phone:before {
    content: "\f525";
}

.ap-summary-info {
    display: flex;
    flex-direction: column;
}

.ap-summary-value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.ap-summary-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Kontakt */
.ap-contact-info {
    margin-top: 15px;
}

.ap-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ap-contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.ap-contact-value {
    font-size: 14px;
}

/* Listy projektów, faktur, powiadomień */
.ap-projects-list,
.ap-invoices-list,
.ap-notifications-list {
    margin-top: 10px;
}

.ap-project-item,
.ap-invoice-item,
.ap-notification-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ap-project-item:last-child,
.ap-invoice-item:last-child,
.ap-notification-item:last-child {
    border-bottom: none;
}

.ap-project-title,
.ap-invoice-number {
    font-weight: 500;
}

.ap-project-title a,
.ap-invoice-number a {
    color: #000;
    text-decoration: none;
}

.ap-project-title a:hover,
.ap-invoice-number a:hover {
    text-decoration: underline;
}

.ap-project-status,
.ap-invoice-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ap-status-new,
.ap-status-unpaid {
    background-color: #e3f2fd;
    color: #1976d2;
}

.ap-status-in_progress {
    background-color: #fff8e1;
    color: #ff8f00;
}

.ap-status-completed,
.ap-status-paid {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.ap-status-on_hold {
    background-color: #ede7f6;
    color: #6a1b9a;
}

.ap-status-cancelled,
.ap-status-overdue {
    background-color: #ffebee;
    color: #c62828;
}

.ap-project-date,
.ap-invoice-due-date {
    font-size: 12px;
    color: #666;
}

.ap-invoice-amount {
    font-weight: 500;
}

/* Powiadomienia */
.ap-notification-item {
    position: relative;
    padding-left: 40px;
}

.ap-notification-icon {
    position: absolute;
    left: 0;
    top: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-notification-content {
    flex: 1;
}

.ap-notification-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.ap-notification-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.ap-notification-date {
    font-size: 12px;
    color: #999;
}

.ap-notification-unread {
    background-color: #fafafa;
}

.ap-notification-unread .ap-notification-title {
    font-weight: 600;
}

/* Lista projektów */
.ap-projects-header {
    margin-bottom: 30px;
}

.ap-projects-header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
}

.ap-projects-filters {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.ap-filter-group {
    margin-right: 20px;
    margin-bottom: 10px;
}

.ap-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.ap-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.ap-projects-table {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ap-table-header {
    display: flex;
    padding: 15px;
    background-color: #f5f5f5;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.ap-table-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.ap-table-row:last-child {
    border-bottom: none;
}

.ap-table-cell {
    flex: 1;
    padding: 0 5px;
}

.ap-cell-title {
    flex: 2;
}

.ap-cell-actions {
    flex: 0.5;
    text-align: right;
}

.ap-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ap-no-items {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.ap-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.ap-button-pagination {
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.ap-button-pagination:hover {
    background-color: #e5e5e5;
}

.ap-pagination-current {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.ap-button-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Responsywność */
@media (max-width: 768px) {
    .ap-dashboard-summary,
    .ap-dashboard-help,
    .ap-dashboard-projects,
    .ap-dashboard-invoices,
    .ap-dashboard-notifications {
        flex-basis: 100%;
        margin: 0 15px 20px;
    }
    
    .ap-table-header,
    .ap-table-row {
        font-size: 14px;
    }
    
    .ap-cell-date {
        display: none;
    }
}

@media (max-width: 576px) {
    .ap-table-header,
    .ap-table-row {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .ap-table-cell {
        flex-basis: 100%;
        margin-bottom: 5px;
        padding: 5px 0;
    }
    
    .ap-cell-title {
        flex-basis: 100%;
    }
    
    .ap-cell-status {
        flex-basis: 50%;
    }
    
    .ap-cell-actions {
        flex-basis: 50%;
        text-align: right;
    }
    
    .ap-otp-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}