/* faisalsugangga/personal-website/personal-website-c97ac8a6ed1701bf5f1fb392a5192db19ba1a110/public/invoice-generator/styles.css */
/* Reset and Base Styles */
:root {
    --bg-color: #1a1a1a;
    --card-bg-color: rgba(0, 100, 150, 0.2); 
    --primary-color: #00BFFF; /* DeepSkyBlue */
    --glow-color: rgba(0, 191, 255, 0.5);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0c0;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--card-bg-color);
    color: white;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-left h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left p {
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: white;
}

.language-toggle, .currency-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-toggle label, .currency-selector label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.language-toggle select, .currency-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle select:hover, .currency-selector select:hover {
    border-color: var(--primary-color);
}

/* Main Content Layout */
.main-content {
    display: flex;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.form-card {
    background: #242933;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 0 20px var(--glow-color);
    border-color: var(--primary-color);
}

.form-card h2, .form-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card h2 i, .form-card h3 i {
    color: var(--primary-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-color);
    color: var(--text-primary);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--glow-color);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="date"] {
    color-scheme: dark;
}

/* Custom File Upload Button */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}
.file-upload-input {
    display: none;
}
.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #1a1a1a;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}
.file-upload-label:hover {
    background: transparent;
    color: var(--primary-color);
}
.file-name {
    color: var(--text-secondary);
    font-style: italic;
}


/* Items Section */
.items-container {
    margin-bottom: 20px;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 80px 120px 120px 40px;
    gap: 15px;
    /* === PERUBAHAN DI SINI: align-items dari 'end' ke 'center' === */
    align-items: center;
    margin-bottom: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.btn-remove-item {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.btn-remove-item:hover {
    background: #c53030;
    transform: scale(1.05);
}

.btn-add-item {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Total Section */
.total-section {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.tax-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.tax-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tax-input-group label {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.tax-input-group input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.logo-preview {
    margin-top: 1rem;
    max-width: 200px;
    max-height: 100px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: var(--bg-color);
}

.logo-preview img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.logo-preview.has-logo {
    border-style: solid;
    border-color: var(--primary-color);
}

#paymentMethod {
    min-height: 100px;
    resize: vertical;
}

.total-final {
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-preview, .btn-export {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
}

.btn-preview {
    background: var(--primary-color);
    color: #000;
}

.btn-preview:hover {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 20px var(--glow-color);
}

.btn-export {
    background: #48bb78;
    color: white;
}

.btn-export:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

/* Donation Card Styles */
.donation-card {
  text-align: center;
  border: 1px solid var(--primary-color);
  background: var(--card-bg-color);
}

.donation-card h3 i {
  margin-right: 10px;
}

.donation-card p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.donation-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.donation-btn {
  text-decoration: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
}

.donation-btn i {
  font-size: 1.2em;
}

.donation-btn.saweria {
  background-color: #f44336;
}

.donation-btn.saweria:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.donation-btn.paypal {
  background-color: #00457C;
}

.donation-btn.paypal:hover {
  background-color: #003057;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 69, 124, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* === PERBAIKAN HEADER MOBILE DI SINI === */
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 1.5rem;
    }
    .header-left {
        text-align: center;
    }
    .header-right {
        flex-direction: column;
        align-items: stretch;
    }
    .language-toggle, .currency-selector {
        align-items: stretch;
    }
    .language-toggle label, .currency-selector label {
        text-align: center;
    }
    /* === AKHIR PERBAIKAN HEADER === */

    .header h1 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .item-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-preview, .btn-export {
        width: 100%;
    }
}