/* Existing Styles Updated */
#time-tracker {
    max-width: 800px; /* Increased width for better table display */
    margin: 0 auto;
    padding: 20px;
    background: #fff; /* Changed to white for cleaner look */
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

#time-tracker h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #1d2327;
}

#time-tracker-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #1d2327;
}

#time-tracker-form select,
#time-tracker-form input,
#time-tracker-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}

#time-tracker-form button {
    padding: 8px 16px;
    margin-right: 10px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

#time-tracker-form button:hover {
    background: #135e96;
}

#time-tracker-form button:disabled {
    background: #a7aaad;
    cursor: not-allowed;
}

#time-tracker-form #timer-display {
    font-weight: 600;
    font-size: 1.2em;
    color: #1d2327;
}

#timer-message .success {
    color: #00a32a;
}

#timer-message .error {
    color: #d63638;
}

.ptt-time-entries,
.widefat {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
}

.logo {
	max-width: 400px;
    float: right;
}

.ptt-time-entries th,
.ptt-time-entries td,
.widefat th,
.widefat td {
    border: 1px solid #c3c4c7;
    padding: 10px;
    text-align: left;
    font-size: 13px;
}

.ptt-time-entries th,
.widefat th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

.ptt-time-entries input,
.widefat input,
.widefat select {
    width: 120px;
    margin-right: 5px;
    padding: 6px;
    border-radius: 3px;
    font-size: 13px;
}

.ptt-edit-time-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal Styles */
.ptt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.ptt-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #c3c4c7;
    width: 80%;
    max-width: 500px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ptt-modal-close {
    color: #787c82;
    float: right;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
}

.ptt-modal-close:hover,
.ptt-modal-close:focus {
    color: #1d2327;
}

.ptt-modal-content h3 {
    margin: 0 0 20px;
    font-size: 1.3em;
    color: #1d2327;
}

.ptt-modal-content form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1d2327;
}

.ptt-modal-content form input[type="text"],
.ptt-modal-content form input[type="email"],
.ptt-modal-content form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}

.ptt-modal-content form input[type="submit"] {
    background-color: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.ptt-modal-content form input[type="submit"]:hover {
    background-color: #135e96;
}

/* Invoice Styles */
.ptt-invoice {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #fff;
}

.ptt-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ptt-invoice-logo {
    flex: 1;
    text-align: left;
}

.ptt-invoice-logo img {
    max-width: 150px;
    height: auto;
}

.ptt-invoice-details {
    flex: 1;
    text-align: right;
}

.ptt-invoice-details h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #1d2327;
}

.ptt-invoice-details h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #1d2327;
}

.ptt-invoice-details p {
    margin: 0;
    line-height: 1.5;
    color: #1d2327;
}

.ptt-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ptt-invoice-table th,
.ptt-invoice-table td {
    border: 1px solid #c3c4c7;
    padding: 10px;
    text-align: left;
    font-size: 13px;
}

.ptt-invoice-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

/* Print styles for PDF compatibility */
@media print {
    .ptt-invoice-header {
        display: flex;
        justify-content: space-between;
    }
    .ptt-invoice-logo img {
        max-width: 150px;
    }
    .ptt-invoice-details {
        text-align: right;
    }
    .ptt-invoice-table {
        page-break-inside: auto;
    }
    .ptt-invoice-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}