/* Photo Timestamp PDF Generator — WordPress Plugin Styles */

.ptpdf-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
}

.ptpdf-wrap *, .ptpdf-wrap *::before, .ptpdf-wrap *::after {
    box-sizing: border-box;
}

/* Drop Zone */
.ptpdf-wrap #ptpdf-drop-zone-section { display: block; }

.ptpdf-wrap #ptpdf-drop-zone {
    border: 3px dashed #c4cdd5;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fff;
}

.ptpdf-wrap #ptpdf-drop-zone:hover,
.ptpdf-wrap #ptpdf-drop-zone.ptpdf-drag-over {
    border-color: #4A90D9;
    background: #f0f6ff;
}

.ptpdf-wrap .ptpdf-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #999;
    display: block;
}

.ptpdf-wrap .ptpdf-primary-text {
    font-size: 20px;
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
}

.ptpdf-wrap .ptpdf-secondary-text {
    font-size: 14px;
    color: #888;
}

/* Processing / Generating */
.ptpdf-wrap .ptpdf-progress-section {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.ptpdf-wrap .ptpdf-progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.ptpdf-wrap .ptpdf-progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e8ecf0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ptpdf-wrap .ptpdf-progress-bar-fill {
    height: 100%;
    background: #4A90D9;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.ptpdf-wrap .ptpdf-progress-text {
    font-size: 15px;
    color: #555;
}

/* Toolbar */
.ptpdf-wrap .ptpdf-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ptpdf-wrap .ptpdf-photo-count {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    margin-right: auto;
}

/* Buttons */
.ptpdf-wrap .ptpdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d0d5da;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #444;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.ptpdf-wrap .ptpdf-btn:hover {
    background: #f5f7fa;
    border-color: #b0b8c0;
}

.ptpdf-wrap .ptpdf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ptpdf-wrap .ptpdf-btn-primary {
    background: #4A90D9;
    color: #fff;
    border-color: #4A90D9;
}

.ptpdf-wrap .ptpdf-btn-primary:hover {
    background: #3a7bc8;
    border-color: #3a7bc8;
}

.ptpdf-wrap .ptpdf-btn-primary:disabled {
    background: #a0c4e8;
    border-color: #a0c4e8;
}

/* Photo Grid */
.ptpdf-wrap #ptpdf-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ptpdf-wrap .ptpdf-photo-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-thumbnail-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-info {
    padding: 10px 12px;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-timestamp-display {
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #333;
    background: #f0f2f4;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-timestamp-missing {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-timestamp-missing .ptpdf-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #b8860b;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-timestamp-missing input {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #d0d5da;
    border-radius: 4px;
    width: 100%;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-card-btn {
    position: absolute;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s;
    padding: 0;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-remove-btn {
    right: 6px;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-rotate-btn {
    left: 6px;
    font-size: 14px;
}

.ptpdf-wrap .ptpdf-photo-card:hover .ptpdf-card-btn {
    opacity: 1;
}

.ptpdf-wrap .ptpdf-photo-card .ptpdf-thumbnail-wrap img {
    transition: transform 0.3s ease;
}

.ptpdf-wrap .ptpdf-photo-card.ptpdf-no-timestamp {
    border-left: 3px solid #e6b800;
}

/* Complete Section */
.ptpdf-wrap .ptpdf-complete-section {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.ptpdf-wrap .ptpdf-complete-section .ptpdf-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #38a169;
}

.ptpdf-wrap .ptpdf-complete-section p {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 24px;
}

.ptpdf-wrap .ptpdf-complete-section .ptpdf-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Toast */
#ptpdf-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ptpdf-toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: ptpdf-toast-in 0.3s ease;
    max-width: 360px;
}

.ptpdf-toast.ptpdf-toast-warning {
    background: #92600a;
}

@keyframes ptpdf-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ptpdf-wrap .ptpdf-hidden { display: none !important; }
