/* ach-styles.css */
/* Concrete Calculator Styles - All classes prefixed with ach- */

/* Base Container */
.ach-container {
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border: 1px solid #ddd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.ach-header {
    background: white;
    color: #000000;
    padding: 30px;
    text-align: center;
    position: relative;
}

.ach-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2c3e50;
}

.ach-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: #34495e;
}

/* Tabs Navigation */
.ach-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 0 30px;
    flex-wrap: wrap;
}

.ach-tab {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.ach-tab:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.ach-tab.active {
    color: #2c3e50;
    border-bottom: 3px solid #2c3e50;
    background: white;
}

/* Calculator Sections */
.ach-calculator-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    animation: ach-fadeIn 0.5s;
}

@keyframes ach-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ach-input-group {
    margin-bottom: 25px;
}

.ach-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.ach-label i {
    margin-right: 10px;
    color: #3498db;
}

.ach-input-with-unit {
    display: flex;
    gap: 10px;
}

.ach-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #2c3e50;
}

.ach-input:focus {
    border-color: #3498db;
    outline: none;
}

.ach-unit-select {
    width: 150px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #2c3e50;
    cursor: pointer;
}

.ach-unit-select:focus {
    border-color: #3498db;
    outline: none;
}

.ach-hint {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Calculate Button */
.ach-calculate-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}

.ach-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}

.ach-calculate-btn:active {
    transform: translateY(0);
}

.ach-calculate-btn i {
    margin-right: 10px;
}

/* Results Section */
.ach-results-section {
    padding: 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.ach-empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #7f8c8d;
    text-align: center;
}

.ach-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.ach-empty-state p {
    font-size: 1.2rem;
    max-width: 300px;
}

.ach-results {
    padding: 20px;
    background: #2c3e50;
    color: white;
    border-radius: 15px;
    text-align: center;
    display: none;
    flex-direction: column;
    justify-content: center;
    animation: ach-fadeIn 0.5s;
}

.ach-results.visible {
    display: flex;
}

.ach-results-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.ach-project-info {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3498db;
}

.ach-time-result {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.ach-time-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ach-time-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.ach-time-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3498db;
}

/* Action Buttons */
.ach-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.ach-action-buttons button {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
    margin-top: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ach-share-btn {
    background: #3498db;
    color: white;
}

.ach-print-btn {
    background: #27ae60;
    color: white;
}

.ach-clear-btn {
    background: #e74c3c;
    color: white;
}

.ach-action-buttons button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ach-action-buttons button i {
    margin-right: 5px;
}

/* SEO Content Section */
.ach-seo-content {
    padding: 30px;
    background: white;
    border-top: 1px solid #eee;
}

.ach-seo-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.ach-seo-article {
    max-width: 800px;
    margin: 0 auto;
}

.ach-seo-article h3 {
    color: #3498db;
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.ach-seo-article p {
    margin-bottom: 15px;
    color: #34495e;
    line-height: 1.7;
}

.ach-seo-article ul {
    margin: 15px 0;
    padding-left: 25px;
}

.ach-seo-article li {
    margin-bottom: 8px;
    color: #34495e;
}

/* Tools Links */
.ach-tools-links {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.ach-tools-links h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.ach-tools-links h3 i {
    margin-right: 10px;
    color: #3498db;
}

.ach-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.ach-tool-link {
    display: block;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.ach-tool-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Info Section */
.ach-info-section {
    width: 100%;
    padding: 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.ach-info-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.ach-info-section h2 i {
    margin-right: 10px;
    color: #3498db;
}

.ach-info-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ach-culture-item {
    padding: 20px;
    border-radius: 10px;
    background-color: #f1f8ff;
    transition: transform 0.3s;
}

.ach-culture-item:hover {
    transform: translateY(-5px);
}

.ach-culture-item h3 {
    display: flex;
    align-items: center;
    color: #3498db;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ach-culture-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.ach-culture-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #34495e;
}

/* Print Certificate */
.ach-print-certificate {
    display: none;
}

.ach-print-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c3e50;
}

.ach-print-header h1 {
    font-size: 24pt !important;
    color: #2c3e50 !important;
    margin-bottom: 10px !important;
}

.ach-print-header .ach-subtitle {
    font-size: 14pt !important;
    color: #666 !important;
}

.ach-print-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 11pt;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.ach-print-details div {
    padding: 5px;
}

.ach-print-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.ach-print-result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 11pt;
}

.ach-print-result-item:nth-child(even) {
    background: #f9f9f9;
}

.ach-print-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 10pt;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ach-container {
        margin: 10px auto;
    }
    
    .ach-header {
        padding: 20px 15px;
    }
    
    .ach-title {
        font-size: 2rem;
    }
    
    .ach-subtitle {
        font-size: 1rem;
    }
    
    .ach-tabs {
        padding: 0 15px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .ach-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .ach-calculator-section {
        padding: 20px;
    }
    
    .ach-input-with-unit {
        flex-direction: column;
        gap: 10px;
    }
    
    .ach-unit-select {
        width: 100%;
    }
    
    .ach-time-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 10px;
    }
    
    .ach-action-buttons {
        flex-direction: column;
    }
    
    .ach-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .ach-info-content {
        grid-template-columns: 1fr;
    }
    
    .ach-seo-content {
        padding: 20px;
    }
    
    .ach-seo-content h2 {
        font-size: 1.5rem;
    }
    
    .ach-seo-article h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ach-header {
        padding: 15px 10px;
    }
    
    .ach-title {
        font-size: 1.7rem;
    }
    
    .ach-subtitle {
        font-size: 0.9rem;
    }
    
    .ach-calculator-section, 
    .ach-results-section, 
    .ach-info-section, 
    .ach-seo-content {
        padding: 15px;
    }
    
    .ach-results {
        padding: 15px;
    }
    
    .ach-results-title {
        font-size: 1.1rem;
    }
    
    .ach-time-item {
        padding: 8px;
    }
    
    .ach-time-label {
        font-size: 0.8rem;
    }
    
    .ach-time-value {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .ach-container * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .ach-action-buttons,
    .ach-tabs,
    .ach-tools-links,
    .ach-seo-content,
    .ach-info-section,
    .ach-calculate-btn,
    .ach-empty-state {
        display: none !important;
    }
    
    .ach-results,
    .ach-print-certificate {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .ach-print-certificate {
        border: 2px solid #000;
        padding: 20px;
        margin: 20px 0;
    }
    
    .ach-results {
        background: white !important;
        color: black !important;
        border: 1px solid #000;
    }
    
    .ach-time-item {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #ccc;
    }
    
    @page {
        margin: 0.5in;
        size: letter;
    }
}